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

This commit is contained in:
Jakub Konka 2023-11-13 17:57:57 +01:00
parent 80b73e3e8f
commit 8c748d5fd7

View File

@ -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;
}