This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Handle multiple ELF function types.


On Tue, Apr 03, 2007 at 11:34:36PM +0100, Paul Brook wrote:
> The attached patch addresses the issue raised in
> http://sourceware.org/ml/binutils/2007-01/msg00257.html
> 
> ARM has multiple ELF functions types[1] (STT_FUNC and STT_ARM_TFUNC). For most 
> purposes these are the same, the differences are in the exact value used when 
> resolving relocations against these symbols.
> 
> In elflink.c there are several places that want to know if something is a 
> function symbol, as this influences behavior when there are multiple 
> definitions of a symbol.
> 
> The patch adds a new ELF backend hook and uses this instead of explicitly 
> comparing against STT_FUNC.
> 

Can it be a little more generic? We have the similar problem with
STT_TLS.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]