aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-03-07 11:23:13 +0100
committerJan Beulich <jbeulich@suse.com>2025-03-07 11:23:13 +0100
commit60e254b7012b370f1b55d572565f829379553a7e (patch)
treeb0e2634fd3e15d7c96397fe7b2d915e62b27667c /binutils/objdump.c
parent9385922d3fb9304622bbd78b2437bcfa50e7491a (diff)
downloadbinutils-60e254b7012b370f1b55d572565f829379553a7e.zip
binutils-60e254b7012b370f1b55d572565f829379553a7e.tar.gz
binutils-60e254b7012b370f1b55d572565f829379553a7e.tar.bz2
objdump: properly disassemble successive functions of the same name
... when only their symbol was requested for disassembly. Addressing the respective FIXME is as easy as coverting the "else" there to an if() with the opposite condition, thus accounting for the disabling the original if() may have effected.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index e7b053c..8239746 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -3957,15 +3957,13 @@ disassemble_section (bfd *abfd, asection *section, void *inf)
break;
case next_sym:
- /* FIXME: There is an implicit assumption here
- that the name of sym is different from
- paux->symbol. */
if (! bfd_is_local_label (abfd, sym))
do_print = false;
break;
}
}
- else
+
+ if (!do_print)
{
const char * name = bfd_asymbol_name (sym);
char * alloc = NULL;