mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 18:38:45 +00:00
check-object: dump more info on SHDRs
This commit is contained in:
parent
76dc0d5160
commit
33154b511c
@ -815,6 +815,10 @@ const ElfDumper = struct {
|
|||||||
try writer.print("shdr {d}\n", .{shndx});
|
try writer.print("shdr {d}\n", .{shndx});
|
||||||
try writer.print("name {s}\n", .{getSectionName(ctx, shndx)});
|
try writer.print("name {s}\n", .{getSectionName(ctx, shndx)});
|
||||||
try writer.print("type {s}\n", .{try fmtShType(ctx.gpa, shdr.sh_type)});
|
try writer.print("type {s}\n", .{try fmtShType(ctx.gpa, shdr.sh_type)});
|
||||||
|
try writer.print("addr {x}\n", .{shdr.sh_addr});
|
||||||
|
try writer.print("offset {x}\n", .{shdr.sh_offset});
|
||||||
|
try writer.print("size {x}\n", .{shdr.sh_size});
|
||||||
|
try writer.print("addralign {x}\n", .{shdr.sh_addralign});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user