From: amodra Date: Sat, 24 Apr 2004 12:39:47 +0000 (+0000) Subject: * objdump.c (disassemble_section): Don't disassemble sections X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1cf1180a604760cb6ee20bf40af43ab80e201135;p=pf3gnuchains%2Fpf3gnuchains3x.git * objdump.c (disassemble_section): Don't disassemble sections without SEC_HAS_CONTENTS. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e654faad9a..55d9ec08c9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-04-24 Alan Modra + + * objdump.c (disassemble_section): Don't disassemble sections + without SEC_HAS_CONTENTS. + 2004-04-22 Jakub Jelinek * objdump.c (synthsyms, synthcount): New variables. diff --git a/binutils/objdump.c b/binutils/objdump.c index 1b89fa9648..c3982e1e90 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1572,7 +1572,8 @@ disassemble_section (bfd *abfd, asection *section, void *info) code are not normally disassembled. */ if (! disassemble_all && only == NULL - && (section->flags & SEC_CODE) == 0) + && ((section->flags & (SEC_CODE | SEC_HAS_CONTENTS)) + != (SEC_CODE | SEC_HAS_CONTENTS))) return; if (! process_section_p (section))