[PATCH] eliminate UNRESOLVED errors on attr-ifunc-1.[c,C]

Nathan Sidwell nathan@codesourcery.com
Thu Sep 16 09:38:00 GMT 2010


On 09/16/10 08:51, Rainer Orth wrote:
> Nathan Sidwell<nathan@codesourcery.com>  writes:
>
>> Would you like to try this patch?  It correctly enables ifunc testing on my
>> i686-pc-linux-gnu glibc 2.11 system
>
> I think this is the wrong approach: if the feature requires linker
> and/or runtime linker support, the gcc/configure.ac check should check
> for this and enable or disable it depending on the results.  I consider
> it bad if the compiler accepts the code, only to fall down at link or
> runtime.
>
> And as I've asked before: what is required to make this work:
>
> * Assembler support for @gnu_indirect_function (already checked in
>    gcc/configure.ac)?

correct
>
> * Linker support?  What specifially?

support for the ifunc relocations (both static and dynamic)

> * 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.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery



More information about the Gcc-patches mailing list