1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 09:57:18 +03:00

[Mach-O] Fix .bss sections

This commit is contained in:
Rui Ueyama 2021-11-07 12:18:55 +09:00
parent fd5d95f9d0
commit 0f0f747135

View File

@ -19,7 +19,7 @@ InputSection::InputSection(Context &ctx, ObjectFile &file, const MachSection &hd
Subsection *subsec = new Subsection{
.isec = *this,
.input_offset = 0,
.input_size = (u32)contents.size(),
.input_size = (u32)hdr.size,
.input_addr = (u32)hdr.addr,
.p2align = (u8)hdr.p2align,
};