Simplified build struct
All checks were successful
/ test (push) Successful in 17s

This commit is contained in:
Eduard Urbach 2025-07-03 17:24:42 +02:00
parent 3f481d0bd3
commit 85cea5cbee
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
15 changed files with 48 additions and 47 deletions

View file

@ -19,7 +19,7 @@ type MachO struct {
// Write writes the Mach-O format to the given writer.
func Write(writer io.WriteSeeker, b *build.Build, codeBytes []byte, dataBytes []byte) {
x := exe.New(HeaderEnd, b.FileAlign, b.MemoryAlign)
x := exe.New(HeaderEnd, b.FileAlign(), b.MemoryAlign())
x.InitSections(codeBytes, dataBytes)
code := x.Sections[0]
data := x.Sections[1]