From 0c2bf8080fbfd6b78be13df69e751db1b14c49f6 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 30 Mar 2017 02:19:55 +0200 Subject: [PATCH] Print out Sa in S*, handy for projects --- libr/io/section.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libr/io/section.c b/libr/io/section.c index 86eb66ba69..e06cf2bdfb 100644 --- a/libr/io/section.c +++ b/libr/io/section.c @@ -171,6 +171,11 @@ R_API void r_io_section_list(RIO *io, ut64 offset, int rad) { io->cb_printf ("S 0x%08"PFMT64x" 0x%08"PFMT64x" 0x%08" PFMT64x" 0x%08"PFMT64x" %s %s\n", s->paddr, s->vaddr, s->size, s->vsize, n, r_str_rwx_i (s->flags)); + if (s->arch && s->bits) { + const char *archName = r_sys_arch_str (s->arch); + io->cb_printf ("Sa %s %d 0x%08"PFMT64x"\n", + archName, s->bits, s->vaddr); + } free (n); } else { io->cb_printf ("[%02d] %c 0x%08"PFMT64x" %s va=0x%08"PFMT64x