mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
Elf2: revert incorrect endian fix
This commit is contained in:
+1
-1
@@ -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, .{
|
||||
|
||||
Reference in New Issue
Block a user