Commit 33154b511c

Jakub Konka <kubkon@jakubkonka.com>
2023-07-13 20:31:19
check-object: dump more info on SHDRs
1 parent 76dc0d5
Changed files (1)
lib
std
Build
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});
         }
     }