From df75f1af9c34ff86ef6b18e9f7b5ed81bd4cb21f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 16 Jun 1999 10:03:59 +0000 Subject: [PATCH] Detect symbols typed as thumb functions. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 83feb18d8c..13122184e1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +1999-06-16 Nick Clifton + + * readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb + functions. + 1999-06-14 Nick Clifton * objdump.c (disassembler_options): New variable. diff --git a/binutils/readelf.c b/binutils/readelf.c index 5af63a7f6e..aa6003c536 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, _(": %d"), type); + { + if (elf_header.e_machine == EM_ARM && type == STT_ARM_TFUNC) + return _("THUMB_FUNC"); + + sprintf (buff, _(": %d"), type); + } else if (type >= STT_LOOS && type <= STT_HIOS) sprintf (buff, _(": %d"), type); else -- 2.34.1