Fix typo in previous patch.
[deliverable/binutils-gdb.git] / binutils / readelf.c
index f9f17f78c1447b79a22021d74d1617f2cc7e6677..fb8d80f83739589368c3042465e756a8d481971f 100644 (file)
@@ -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));
@@ -6115,7 +6115,7 @@ dump_section (Elf_Internal_Shdr *section, FILE *file)
       for (j = 0; j < lbytes; j++)
        {
          k = data[j];
-         if (k >= ' ' && k < 0x80)
+         if (k >= ' ' && k < 0x7f)
            printf ("%c", k);
          else
            printf (".");
This page took 0.02783 seconds and 4 git commands to generate.