mirror of
https://github.com/ziglang/zig.git
synced 2026-01-14 19:35:12 +00:00
elf: fix properly updating .got.zig section
This commit is contained in:
parent
5698be3ef0
commit
e8f522122a
@ -625,6 +625,11 @@ pub fn initMetadata(self: *Elf) !void {
|
||||
shdr.sh_addr = phdr.p_vaddr;
|
||||
shdr.sh_offset = phdr.p_offset;
|
||||
shdr.sh_size = phdr.p_memsz;
|
||||
try self.phdr_to_shdr_table.putNoClobber(
|
||||
gpa,
|
||||
self.zig_got_section_index.?,
|
||||
self.phdr_zig_got_index.?,
|
||||
);
|
||||
}
|
||||
|
||||
if (self.zig_data_rel_ro_section_index == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user