diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-13 20:31:19 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-13 20:31:19 +0200 |
| commit | 33154b511cbf96e0c95e8bad0c5e19ba54371964 (patch) | |
| tree | 6a697a1ddf2965d0ba37b577c10d1d953a5711b7 /lib/std/Build/Step/CheckObject.zig | |
| parent | 76dc0d516089da6cd7dfb5ee1634c7e4ccef6a4a (diff) | |
| download | zig-33154b511cbf96e0c95e8bad0c5e19ba54371964.tar.gz zig-33154b511cbf96e0c95e8bad0c5e19ba54371964.zip | |
check-object: dump more info on SHDRs
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
| -rw-r--r-- | lib/std/Build/Step/CheckObject.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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}); } } |
