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

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Thu Sep 16 08:45:00 GMT 2010


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)?

* Linker support?  What specifially?

* Runtime linker support?  Is this the purpose of your glibc 2.11 check:
  to test for ld.so.1 support?

Thanks.
	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list