This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: STT_GNU_IFUNC from libgcc?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Adam Goode <adam at spicenitz dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 2 Jun 2009 12:36:12 -0700
- Subject: Re: STT_GNU_IFUNC from libgcc?
- References: <4A25660D.6050508@spicenitz.org>
On Tue, Jun 2, 2009 at 10:49 AM, Adam Goode <adam@spicenitz.org> wrote:
> Hi,
>
> I have a couple questions about STT_GNU_IFUNC:
>
> ?* Could it be used from libgcc? (I don't see why not, but
> ? libgcc is a little special.)
>
> ?* Will it work with a statically-linked library? (libgcc
> ? is often statically linked in, would this still work,
> ? or would it need to be dynamically linked?)
>
STT_GNU_IFUNC works in all cases where
STT_IFUNC works, including statically-linked
binaries.
> I'm asking because ARM floating point is implemented as functions in
> libgcc, and it would be nice to have these go through the IFUNC
> mechanism to take advantage of hardware floating point when available.
>
You need to implement the ARM backend support
in both binutils and glibc.
--
H.J.