Skip to content

Commit

Permalink
dumper: print elf section sizes as unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Jul 21, 2024
1 parent d5cede7 commit 85b5e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dumper/format/elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 85b5e86

Please sign in to comment.