Implemented dynamic section alignment

This commit is contained in:
2025-03-09 00:23:23 +01:00
parent b67f3b0977
commit 947a8db937
9 changed files with 35 additions and 23 deletions

View File

@ -18,7 +18,7 @@ func Finalize(a asm.Assembler, dlls dll.List) ([]byte, []byte) {
code: make([]byte, 0, len(a.Instructions)*8),
codeLabels: make(map[string]Address, 32),
codePointers: make([]*pointer, 0, len(a.Instructions)*8),
codeStart: codeOffset(),
codeStart: uint32(codeOffset()),
data: data,
dataLabels: dataLabels,
dlls: dlls,