[PATCH] S/390: Fix two issues with the IFUNC optimized mem* routines

David Miller davem@davemloft.net
Wed Aug 29 16:52:00 GMT 2012


From: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Date: Wed, 29 Aug 2012 17:45:52 +0200

> The point is that if it is not known at compile time that the symbol
> will resolve locally the compiler generates an GOT access which for
> a DSO cannot be completed at final link.

If the symbol is hidden or protected, it can.

The linker has to optimize the GOT reference into a relative reloc if
you want IFUNC to work properly, sparc does this as does x86.

You might need to extend the s390 relocations to have a GOT
optimization scheme just as I had to add to sparc.  They work much
like TLS relocations.




More information about the Libc-alpha mailing list