This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ARM THUMB_FUNC symbol type ?
- From: Christophe LYON <christophe dot lyon at st dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 23 Jan 2009 18:22:51 +0100
- Subject: ARM THUMB_FUNC symbol type ?
Hello,
Considering the following sample code:
.text
.globl lib_func2
.type lib_func2, %function
.thumb_func
lib_func2:
bx lr
.size lib_func2, . - lib_func2
assembled with gas (arm-none-eabi), when I look at the symbol table,
(readelf -s), I can see:
4: 00000000 0 NOTYPE LOCAL DEFAULT 1 $t
5: 00000001 2 FUNC LOCAL DEFAULT 1 lib_func2
Why isn't lib_func2 of type THUMB_FUNC?
I have tried looking at what gas does, and in arm_adjust_symtab() it
does set st_info to STT_ARM_TFUNC. Is it lost afterwards?
Thanks,
Christophe.