From 8c748d5fd792f6481075a186ed97fe9b3618b561 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 13 Nov 2023 17:57:57 +0100 Subject: [PATCH] elf: setting offset to maxInt for non-allocated non-incremental sections is bad --- src/link/Elf/Object.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/link/Elf/Object.zig b/src/link/Elf/Object.zig index 136beb4d52..f595988e82 100644 --- a/src/link/Elf/Object.zig +++ b/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; }