]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Detect symbols typed as thumb functions.
authorNick Clifton <nickc@redhat.com>
Wed, 16 Jun 1999 10:03:59 +0000 (10:03 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Jun 1999 10:03:59 +0000 (10:03 +0000)
binutils/ChangeLog
binutils/readelf.c

index 83feb18d8c49524afab2f5c8709e32bb118a8054..13122184e1219e1ad3a23cc65d385309bd8bacca 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-16  Nick Clifton  <nickc@cygnus.com>
+
+       * readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb
+       functions. 
+
 1999-06-14  Nick Clifton  <nickc@cygnus.com>
 
        * objdump.c (disassembler_options): New variable.
index 5af63a7f6e9909fe612e73dd870d26056067347b..aa6003c536796bf5b4cf31303c5e8c7a3d7404a5 100644 (file)
@@ -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