From 5184c2ae47954b52118a7ea757407834b59038cf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 10 Jul 2007 13:52:39 +0000 Subject: [PATCH] * objdump.c (dump_dwarf): Correct setting of is_relocatable. --- binutils/ChangeLog | 36 ++++++++++++++++++++---------------- binutils/objdump.c | 3 +-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 81006b12ff..01f7b728b8 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-07-10 Alan Modra + + * objdump.c (dump_dwarf): Correct setting of is_relocatable. + 2007-07-09 Roland McGrath * readelf.c (get_gnu_elf_note_type): New function. @@ -35,11 +39,11 @@ 2007-07-05 Kai Tietz - * resrc.c: (read_rc_file): Add include path of user passed rc + * resrc.c: (read_rc_file): Add include path of user passed rc input file. - * windres.c: (windres_add_include_dir): New. - (main): Use of windres_add_include_dir. - * windres.h: (windres_add_include_dir): Add prototype. + * windres.c: (windres_add_include_dir): New. + (main): Use of windres_add_include_dir. + * windres.h: (windres_add_include_dir): Add prototype. 2007-07-05 Alan Modra @@ -127,21 +131,21 @@ 2007-06-19 Danny Smith - * objdump.c: Include sys/stat.h. + * objdump.c: Include sys/stat.h. 2007-06-19 Kai Tietz - * Makefile.am: Add windmc tool. - * Makefile.in: Regenerate. - * configure.in: Add windmc tool. - * configure: Regenerate. - * mclex.c: New. - * mcparse.y: New. - * windmc.c: New. - * windmc.h: New. - * doc/Makefile.am: Add windmc tool. - * doc/Makefile.in: Regenerate. - * doc/binutils.texi: Add windmc documentation. + * Makefile.am: Add windmc tool. + * Makefile.in: Regenerate. + * configure.in: Add windmc tool. + * configure: Regenerate. + * mclex.c: New. + * mcparse.y: New. + * windmc.c: New. + * windmc.h: New. + * doc/Makefile.am: Add windmc tool. + * doc/Makefile.in: Regenerate. + * doc/binutils.texi: Add windmc documentation. * NEWS: Mention new tool. 2007-06-18 Andi Kleen diff --git a/binutils/objdump.c b/binutils/objdump.c index 8ab69a44f6..03bc4d60ae 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2166,8 +2166,7 @@ check_mach_o_dwarf (bfd *abfd) static void dump_dwarf (bfd *abfd) { - is_relocatable = ((abfd->flags & (HAS_RELOC | EXEC_P | DYNAMIC)) - == HAS_RELOC); + is_relocatable = (abfd->flags & (EXEC_P | DYNAMIC)) == 0; /* FIXME: bfd_get_arch_size may return -1. We assume that 64bit targets will return 64. */