This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM THUMB_FUNC symbol type ?
- From: Christophe LYON <christophe dot lyon at st dot com>
- To: Christophe LYON <christophe dot lyon at st dot com>, Binutils <binutils at sourceware dot org>
- Date: Fri, 23 Jan 2009 19:02:55 +0100
- Subject: Re: ARM THUMB_FUNC symbol type ?
- References: <4979FCEB.7050901@st.com> <20090123174348.GA7020@caradoc.them.org>
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?
See elf32_arm_swap_symbol_out.
Thanks, I figured it out a few minutes after posting my question.
Maybe there should be a fix in readelf/objdump so that it is more
obvious to the end-user?
Anyway, my original problem is that I am having a look at the mixed-app
test (arm-none-eabi or arm-gnueabi-linux), where I observe that
lib_func2 is not of type STT_ARM_TFUNC, while I would expect
elf32_arm_swap_symbol_in to have set that flag. Using readelf on
mixed-lib.o says:
10: 00000021 2 FUNC GLOBAL DEFAULT 1 lib_func2
What's wrong?
Christophe.