mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Elf2: revert incorrect endian fix
This commit is contained in:
parent
f06adc70b0
commit
7b325e08c9
@ -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, .{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user