From 85b5e865c96a00500674362e605210c06af67c64 Mon Sep 17 00:00:00 2001 From: dd86k Date: Sun, 21 Jul 2024 13:03:50 -0400 Subject: [PATCH] dumper: print elf section sizes as unsigned --- dumper/format/elf.d | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dumper/format/elf.d b/dumper/format/elf.d index ffaebc37..278eb5bf 100644 --- a/dumper/format/elf.d +++ b/dumper/format/elf.d @@ -409,11 +409,11 @@ void dump_elf_section32(Elf32_Shdr *shdr, uint idx, const(char)* name, int nmax) null); print_x32("sh_addr", sh_addr); print_x32("sh_offset", sh_offset); - print_x32("sh_size", sh_size); + print_u32("sh_size", sh_size); print_x32("sh_link", sh_link); print_x32("sh_info", sh_info); - print_x32("sh_addralign", sh_addralign); - print_x32("sh_entsize", sh_entsize); + print_u32("sh_addralign", sh_addralign); + print_u32("sh_entsize", sh_entsize); } } void dump_elf_section64(Elf64_Shdr *shdr, uint idx, const(char)* name, int nmax) { @@ -436,11 +436,11 @@ void dump_elf_section64(Elf64_Shdr *shdr, uint idx, const(char)* name, int nmax) null); print_x64("sh_addr", sh_addr); print_x64("sh_offset", sh_offset); - print_x64("sh_size", sh_size); + print_u64("sh_size", sh_size); print_x32("sh_link", sh_link); print_x32("sh_info", sh_info); - print_x64("sh_addralign", sh_addralign); - print_x64("sh_entsize", sh_entsize); + print_u64("sh_addralign", sh_addralign); + print_u64("sh_entsize", sh_entsize); } }