* readelf.c (get_section_type_name): Don't print SHT_ prefix for
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2001 09:23:29 +0000 (09:23 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2001 09:23:29 +0000 (09:23 +0000)
LOPROC, LOOS and LOUSER.

binutils/ChangeLog
binutils/readelf.c

index 99e49d4eed787777671cfdf036a3b1532d2c1d15..b438d4d21821b8bdce56d4ff0336d002018ebd8b 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-12  Jakub Jelinek  <jakub@redhat.com>
+
+       * readelf.c (get_section_type_name): Don't print SHT_ prefix for
+       LOPROC, LOOS and LOUSER.
+
 Thu Oct 11 21:45:17 2001  J"orn Rennecke <amylaar@onetel.net.uk>
 
        * MAINTAINERS: Update my email address.
index 351fb3618e62ad17689c85f2a77f0f43924e85bd..18bde6966dea836a0cb101b198273b836e92aa0c 100644 (file)
@@ -1999,12 +1999,12 @@ get_section_type_name (sh_type)
          if (result != NULL)
            return result;
 
-         sprintf (buff, "SHT_LOPROC+%x", sh_type - SHT_LOPROC);
+         sprintf (buff, "LOPROC+%x", sh_type - SHT_LOPROC);
        }
       else if ((sh_type >= SHT_LOOS) && (sh_type <= SHT_HIOS))
-       sprintf (buff, "SHT_LOOS+%x", sh_type - SHT_LOOS);
+       sprintf (buff, "LOOS+%x", sh_type - SHT_LOOS);
       else if ((sh_type >= SHT_LOUSER) && (sh_type <= SHT_HIUSER))
-       sprintf (buff, "SHT_LOUSER+%x", sh_type - SHT_LOUSER);
+       sprintf (buff, "LOUSER+%x", sh_type - SHT_LOUSER);
       else
        sprintf (buff, _("<unknown>: %x"), sh_type);