ARM THUMB_FUNC symbol type ?

Christophe LYON christophe.lyon@st.com
Fri Jan 23 17:23:00 GMT 2009


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.



More information about the Binutils mailing list