diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-19 21:29:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-19 21:29:46 +0000 |
commit | 3bee8bcdbf34924e98d142ff4980f19dfdf75b3d (patch) | |
tree | f1023df8501873a52873c7a6319f55ff81ee1269 | |
parent | 22b75d0ae688dadd85f4bf89bd14541f9c9c6f2c (diff) | |
download | gdb-3bee8bcdbf34924e98d142ff4980f19dfdf75b3d.zip gdb-3bee8bcdbf34924e98d142ff4980f19dfdf75b3d.tar.gz gdb-3bee8bcdbf34924e98d142ff4980f19dfdf75b3d.tar.bz2 |
2005-04-19 H.J. Lu <hongjiu.lu@intel.com>
* objdump.c (dump_section_header): Skip linker created section.
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/objdump.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f040336..1156c15 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2005-04-19 H.J. Lu <hongjiu.lu@intel.com> + + * objdump.c (dump_section_header): Skip linker created section. + 2005-04-17 H.J. Lu <hongjiu.lu@intel.com> * objdump.c (dump_section_header): Support SEC_GROUP. diff --git a/binutils/objdump.c b/binutils/objdump.c index 575a141..52cd3d0 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -299,6 +299,11 @@ dump_section_header (bfd *abfd, asection *section, char *comma = ""; unsigned int opb = bfd_octets_per_byte (abfd); + /* Ignore linker created section. See elfNN_ia64_object_p in + bfd/elfxx-ia64.c. */ + if (section->flags & SEC_LINKER_CREATED) + return; + printf ("%3d %-13s %08lx ", section->index, bfd_get_section_name (abfd, section), (unsigned long) bfd_section_size (abfd, section) / opb); |