This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 1/2] arm: Implement memcpy ifunc selection in C


On Mon, 9 Oct 2017, Adhemerval Zanella wrote:

> I agree with you, but currently glibc build just fail with gcc mainline
> without ifunc attribute support for such architectures.  What about to
> add a configure test for glibc master to check for such failure on
> configure (mismatch alias for ifunc resolvers)?

Some such check would be reasonable, once GCC has been changed for ARM.

To be clear, with GCC 7 and before it's reasonable to build IFUNCs using 
the versions of the C macros that get types and debug info wrong.  With 
GCC 8 and later, IFUNCs built in C need to use the ifunc attribute to 
avoid the errors about types (and we'd like to phase out IFUNCs 
implemented in assembly).  So if you get the error for mismatched types, 
and don't have ifunc attribute support, that should be considered a case 
where multiarch support should be disabled by configure, just like if the 
assembler or linker support are missing.

-- 
Joseph S. Myers
joseph@codesourcery.com


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