diff options
author | Nick Clifton <nickc@redhat.com> | 1999-06-16 10:03:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-06-16 10:03:59 +0000 |
commit | df75f1af9c34ff86ef6b18e9f7b5ed81bd4cb21f (patch) | |
tree | 08e312db9522b69ba7d8a6bdd3bc78cde5d54458 /binutils/readelf.c | |
parent | 5876e06d81da261933a14bee1eff342daabad1f9 (diff) | |
download | gdb-df75f1af9c34ff86ef6b18e9f7b5ed81bd4cb21f.zip gdb-df75f1af9c34ff86ef6b18e9f7b5ed81bd4cb21f.tar.gz gdb-df75f1af9c34ff86ef6b18e9f7b5ed81bd4cb21f.tar.bz2 |
Detect symbols typed as thumb functions.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 5af63a7..aa6003c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3390,7 +3390,12 @@ get_symbol_type (type) case STT_FILE: return _("FILE"); default: if (type >= STT_LOPROC && type <= STT_HIPROC) - sprintf (buff, _("<processor specific>: %d"), type); + { + if (elf_header.e_machine == EM_ARM && type == STT_ARM_TFUNC) + return _("THUMB_FUNC"); + + sprintf (buff, _("<processor specific>: %d"), type); + } else if (type >= STT_LOOS && type <= STT_HIOS) sprintf (buff, _("<OS specific>: %d"), type); else |