diff options
author | Alan Modra <amodra@gmail.com> | 2004-04-24 12:39:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-04-24 12:39:47 +0000 |
commit | 46212538d62a2a456f6025cf12f3d3a359fb08b9 (patch) | |
tree | 07970b82a89530f5690f263577e2f64884e35feb | |
parent | 558fe4a71c1e7b3ccd95d26432b029b33c6450bd (diff) | |
download | gdb-46212538d62a2a456f6025cf12f3d3a359fb08b9.zip gdb-46212538d62a2a456f6025cf12f3d3a359fb08b9.tar.gz gdb-46212538d62a2a456f6025cf12f3d3a359fb08b9.tar.bz2 |
* objdump.c (disassemble_section): Don't disassemble sections
without SEC_HAS_CONTENTS.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/objdump.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e654faa..55d9ec0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-04-24 Alan Modra <amodra@bigpond.net.au> + + * objdump.c (disassemble_section): Don't disassemble sections + without SEC_HAS_CONTENTS. + 2004-04-22 Jakub Jelinek <jakub@redhat.com> * objdump.c (synthsyms, synthcount): New variables. diff --git a/binutils/objdump.c b/binutils/objdump.c index 1b89fa9..c3982e1 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)) |