diff options
author | Nick Clifton <nickc@redhat.com> | 2003-10-30 14:24:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-10-30 14:24:02 +0000 |
commit | e69f2d21940833b10a83f2483981133631efa112 (patch) | |
tree | cf9c3c490aa809cbc7a2ec2f37fcd428b129ce62 /binutils/readelf.c | |
parent | 68b6ddd08f8b349f4da7d3a2da151a482db36115 (diff) | |
download | gdb-e69f2d21940833b10a83f2483981133631efa112.zip gdb-e69f2d21940833b10a83f2483981133631efa112.tar.gz gdb-e69f2d21940833b10a83f2483981133631efa112.tar.bz2 |
Do not dump the contents of SHT_NOBITS sections - they have no file space
assigned to their contents.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 629db76..fb8d80f 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6055,7 +6055,7 @@ dump_section (Elf_Internal_Shdr *section, FILE *file) bytes = section->sh_size; - if (bytes == 0) + if (bytes == 0 || section->sh_type == SHT_NOBITS) { printf (_("\nSection '%s' has no data to dump.\n"), SECTION_NAME (section)); |