This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] eliminate UNRESOLVED errors on attr-ifunc-1.[c,C]
On Thu, Sep 16, 2010 at 10:16:21AM +0200, Rainer Orth wrote:
> Ok, so check for the GNU ld (and eventually gold) version that supports
> this in gcc/configure.ac, and assume that other linkers don't have that
> support. If that assumption proves incorrect later, this can be handled
> on a case-by-case basis.
>
> >> * Runtime linker support? Is this the purpose of your glibc 2.11 check:
> >> to test for ld.so.1 support?
> >
> > handling for the ifunc dynamic relocations.
>
> No idea what's the best way to check this.
Especially for cross compiling it can't be a runtime test, so the best
is to check __GLIBC__ and __GLIBC_MINOR__ IMHO (for the targets that
actually support it).
Jakub