commit 33154b511cbf96e0c95e8bad0c5e19ba54371964 (tree)
parent 76dc0d516089da6cd7dfb5ee1634c7e4ccef6a4a
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Thu, 13 Jul 2023 20:31:19 +0200
check-object: dump more info on SHDRs
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/Build/Step/CheckObject.zig b/lib/std/Build/Step/CheckObject.zig
@@ -815,6 +815,10 @@ const ElfDumper = struct {
try writer.print("shdr {d}\n", .{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("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});
}
}