Commit 8c748d5fd7

Jakub Konka <kubkon@jakubkonka.com>
2023-11-13 17:57:57
elf: setting offset to maxInt for non-allocated non-incremental sections is bad
1 parent 80b73e3
Changed files (1)
src
link
src/link/Elf/Object.zig
@@ -251,7 +251,6 @@ fn initOutputSection(self: Object, elf_file: *Elf, shdr: ElfShdr) error{OutOfMem
         .type = @"type",
         .flags = flags,
         .name = name,
-        .offset = std.math.maxInt(u64),
     });
     return out_shndx;
 }