ZeroPad addresses in iSq and iSSq ##bin

This commit is contained in:
pancake 2023-03-16 01:47:24 +01:00 committed by pancake
parent 9ad89fd980
commit 4e8b0986e2
2 changed files with 40 additions and 40 deletions

View File

@ -3109,7 +3109,7 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
R_LOG_ERROR ("Section at 0x%08"PFMT64x" larger than bin.hashlimit", section->paddr);
}
}
r_cons_printf ("0x%"PFMT64x" 0x%"PFMT64x" %s %s%s%s\n",
r_cons_printf ("0x%08"PFMT64x" 0x%08"PFMT64x" %s %s%s%s\n",
addr, addr + section->size,
perms,
r_str_get (hashstr), hashstr ? " " : "",

View File

@ -2961,36 +2961,36 @@ NAME=iSq
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iSq
EXPECT=<<EOF
0x0 0x0 ----
0x8048134 0x8048147 -r-- .interp
0x8048148 0x8048168 -r-- .note.ABI-tag
0x8048168 0x804818c -r-- .note.gnu.build-id
0x804818c 0x80481ac -r-- .gnu.hash
0x80481ac 0x80481fc -r-- .dynsym
0x80481fc 0x8048246 -r-- .dynstr
0x8048246 0x8048250 -r-- .gnu.version
0x8048250 0x8048270 -r-- .gnu.version_r
0x8048270 0x8048278 -r-- .rel.dyn
0x8048278 0x8048290 -r-- .rel.plt
0x8048290 0x80482b3 -r-x .init
0x80482c0 0x8048300 -r-x .plt
0x8048300 0x8048494 -r-x .text
0x8048494 0x80484a8 -r-x .fini
0x80484a8 0x80484bd -r-- .rodata
0x80484c0 0x80484ec -r-- .eh_frame_hdr
0x80484ec 0x804859c -r-- .eh_frame
0x804959c 0x80495a0 -rw- .init_array
0x80495a0 0x80495a4 -rw- .fini_array
0x80495a4 0x80495a8 -rw- .jcr
0x80495a8 0x8049690 -rw- .dynamic
0x8049690 0x8049694 -rw- .got
0x8049694 0x80496ac -rw- .got.plt
0x80496ac 0x80496b4 -rw- .data
0x80496b4 0x80496b4 -rw- .bss
0x0 0x11 ---- .comment
0x0 0x106 ---- .shstrtab
0x0 0x450 ---- .symtab
0x0 0x257 ---- .strtab
0x00000000 0x00000000 ----
0x08048134 0x08048147 -r-- .interp
0x08048148 0x08048168 -r-- .note.ABI-tag
0x08048168 0x0804818c -r-- .note.gnu.build-id
0x0804818c 0x080481ac -r-- .gnu.hash
0x080481ac 0x080481fc -r-- .dynsym
0x080481fc 0x08048246 -r-- .dynstr
0x08048246 0x08048250 -r-- .gnu.version
0x08048250 0x08048270 -r-- .gnu.version_r
0x08048270 0x08048278 -r-- .rel.dyn
0x08048278 0x08048290 -r-- .rel.plt
0x08048290 0x080482b3 -r-x .init
0x080482c0 0x08048300 -r-x .plt
0x08048300 0x08048494 -r-x .text
0x08048494 0x080484a8 -r-x .fini
0x080484a8 0x080484bd -r-- .rodata
0x080484c0 0x080484ec -r-- .eh_frame_hdr
0x080484ec 0x0804859c -r-- .eh_frame
0x0804959c 0x080495a0 -rw- .init_array
0x080495a0 0x080495a4 -rw- .fini_array
0x080495a4 0x080495a8 -rw- .jcr
0x080495a8 0x08049690 -rw- .dynamic
0x08049690 0x08049694 -rw- .got
0x08049694 0x080496ac -rw- .got.plt
0x080496ac 0x080496b4 -rw- .data
0x080496b4 0x080496b4 -rw- .bss
0x00000000 0x00000011 ---- .comment
0x00000000 0x00000106 ---- .shstrtab
0x00000000 0x00000450 ---- .symtab
0x00000000 0x00000257 ---- .strtab
EOF
RUN
@ -2998,15 +2998,15 @@ NAME=iSSq
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iSSq
EXPECT=<<EOF
0x8048034 0x8048134 -r-x PHDR
0x8048134 0x8048147 -r-- INTERP
0x8048000 0x804859c -r-x LOAD0
0x804959c 0x80496b4 -rw- LOAD1
0x80495a8 0x8049690 -rw- DYNAMIC
0x8048148 0x804818c -r-- NOTE
0x80484c0 0x80484ec -r-- GNU_EH_FRAME
0x0 0x0 -rw- GNU_STACK
0x8048000 0x8048034 -rw- ehdr
0x08048034 0x08048134 -r-x PHDR
0x08048134 0x08048147 -r-- INTERP
0x08048000 0x0804859c -r-x LOAD0
0x0804959c 0x080496b4 -rw- LOAD1
0x080495a8 0x08049690 -rw- DYNAMIC
0x08048148 0x0804818c -r-- NOTE
0x080484c0 0x080484ec -r-- GNU_EH_FRAME
0x00000000 0x00000000 -rw- GNU_STACK
0x08048000 0x08048034 -rw- ehdr
EOF
RUN