From 33154b511cbf96e0c95e8bad0c5e19ba54371964 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 13 Jul 2023 20:31:19 +0200 Subject: [PATCH] check-object: dump more info on SHDRs --- lib/std/Build/Step/CheckObject.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/Build/Step/CheckObject.zig b/lib/std/Build/Step/CheckObject.zig index 418aa9f681..2458c15271 100644 --- 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}); } }