aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c16
2 files changed, 9 insertions, 12 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 958a26a..5b87074 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-28 Alan Modra <amodra@bigpond.net.au>
+
+ * objdump.c (dump_bfd): Pass both symbol tables to
+ bfd_get_synthetic_symtab.
+
2004-08-17 Jakub Jelinek <jakub@redhat.com>
* objdump.c (dump_bfd): For relocatable objects, pass syms instead
diff --git a/binutils/objdump.c b/binutils/objdump.c
index af04b70..e56bf36 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2566,18 +2566,10 @@ dump_bfd (bfd *abfd)
dynsyms = slurp_dynamic_symtab (abfd);
if (disassemble)
{
- synthcount = 0;
- if (bfd_get_file_flags (abfd) & (DYNAMIC | EXEC_P))
- {
- if (dynsymcount > 0)
- synthcount = bfd_get_synthetic_symtab (abfd, dynsyms, &synthsyms);
- }
- else
- {
- if (symcount > 0)
- synthcount = bfd_get_synthetic_symtab (abfd, syms, &synthsyms);
- }
- if (synthcount < 0) synthcount = 0;
+ synthcount = bfd_get_synthetic_symtab (abfd, symcount, syms,
+ dynsymcount, dynsyms, &synthsyms);
+ if (synthcount < 0)
+ synthcount = 0;
}
if (dump_symtab)