diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-10-12 09:23:29 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2001-10-12 09:23:29 +0000 |
commit | c91d0dfb4f6910d4c192d9fc4ba018e90d951d99 (patch) | |
tree | 3e181f3e6b09d5cc6f19aa17fa4f96489ab18821 /binutils | |
parent | 7f28ab9dc7011dbaffb3d2566598ead9ebc7226f (diff) | |
download | gdb-c91d0dfb4f6910d4c192d9fc4ba018e90d951d99.zip gdb-c91d0dfb4f6910d4c192d9fc4ba018e90d951d99.tar.gz gdb-c91d0dfb4f6910d4c192d9fc4ba018e90d951d99.tar.bz2 |
* readelf.c (get_section_type_name): Don't print SHT_ prefix for
LOPROC, LOOS and LOUSER.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 99e49d4..b438d4d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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. diff --git a/binutils/readelf.c b/binutils/readelf.c index 351fb36..18bde69 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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); |