mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Elf2: revert incorrect endian fix
This commit is contained in:
parent
f06adc70b0
commit
7b325e08c9
1 changed files with 1 additions and 1 deletions
|
|
@ -1143,7 +1143,7 @@ fn initHeaders(
|
||||||
if (target_endian != native_endian) std.mem.byteSwapAllFields(ElfN.Sym, symtab_null);
|
if (target_endian != native_endian) std.mem.byteSwapAllFields(ElfN.Sym, symtab_null);
|
||||||
|
|
||||||
const ehdr = @field(elf.ehdrPtr(), @tagName(ct_class));
|
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, .{
|
assert(elf.si.shstrtab == try elf.addSection(elf.ni.file, .{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue