This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Handle multiple ELF function types.
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 3 Apr 2007 15:44:06 -0700
- Subject: Re: [patch] Handle multiple ELF function types.
- References: <200704032334.37520.paul@codesourcery.com>
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.