Elf2: revert incorrect endian fix

This commit is contained in:
Jacob Young 2025-11-19 22:19:29 -05:00
parent f06adc70b0
commit 7b325e08c9

View file

@ -1143,7 +1143,7 @@ fn initHeaders(
if (target_endian != native_endian) std.mem.byteSwapAllFields(ElfN.Sym, symtab_null);
const ehdr = @field(elf.ehdrPtr(), @tagName(ct_class));
elf.targetStore(&ehdr.shstrndx, ehdr.shnum);
ehdr.shstrndx = ehdr.shnum;
},
}
assert(elf.si.shstrtab == try elf.addSection(elf.ni.file, .{