This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] eliminate UNRESOLVED errors on attr-ifunc-1.[c,C]


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


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