diff options
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)); |