authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-12-31 10:15:07+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-12-31 10:19:04+01:00
log0fd3015e558a8b4decf535e75481cdbc29540ff8
treeebe2ed9db503188e661eca7c0a31a954aad033c3
parent9369176332a11fa92d3a0ed4493a22f4ed2701af

macho: sentinel can be 4 byte long


1 files changed, 2 insertions(+), 2 deletions(-)

src/link/MachO/DebugSymbols.zig+2-2
...@@ -525,8 +525,8 @@ pub fn flushModule(self: *DebugSymbols, allocator: *Allocator, options: link.Opt...@@ -525,8 +525,8 @@ pub fn flushModule(self: *DebugSymbols, allocator: *Allocator, options: link.Opt
525 mem.writeIntLittle(u64, di_buf.addManyAsArrayAssumeCapacity(8), text_section.size);525 mem.writeIntLittle(u64, di_buf.addManyAsArrayAssumeCapacity(8), text_section.size);
526526
527 // Sentinel.527 // Sentinel.
528 mem.writeIntLittle(u64, di_buf.addManyAsArrayAssumeCapacity(8), 0);528 mem.writeIntLittle(u32, di_buf.addManyAsArrayAssumeCapacity(4), 0);
529 mem.writeIntLittle(u64, di_buf.addManyAsArrayAssumeCapacity(8), 0);529 mem.writeIntLittle(u32, di_buf.addManyAsArrayAssumeCapacity(4), 0);
530530
531 // Go back and populate the initial length.531 // Go back and populate the initial length.
532 const init_len = di_buf.items.len - after_init_len;532 const init_len = di_buf.items.len - after_init_len;