authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-11-13 17:57:57+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-11-13 17:57:57+01:00
log8c748d5fd792f6481075a186ed97fe9b3618b561
tree3049a9c4811038547ee925903e90016acfd490c8
parent80b73e3e8fd5ef8b46152e929153ad45fc6220fd

elf: setting offset to maxInt for non-allocated non-incremental sections is bad


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

src/link/Elf/Object.zig-1
...@@ -251,7 +251,6 @@ fn initOutputSection(self: Object, elf_file: *Elf, shdr: ElfShdr) error{OutOfMem...@@ -251,7 +251,6 @@ fn initOutputSection(self: Object, elf_file: *Elf, shdr: ElfShdr) error{OutOfMem
251 .type = @"type",251 .type = @"type",
252 .flags = flags,252 .flags = flags,
253 .name = name,253 .name = name,
254 .offset = std.math.maxInt(u64),
255 });254 });
256 return out_shndx;255 return out_shndx;
257}256}