This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libitm, build] Clear hardware capabilities on libitm.so with Sun ld
On 11/22/2011 10:14 AM, Rainer Orth wrote:
> As an aside, in Solaris 10 Update 10 and Solaris 11, there's direct
> support in ld and ld.so.1 to select different implementations of the
> same interface, depending on hardware capabilites present:
>
> http://docs.oracle.com/cd/E23824_01/html/819-0690/chapter2-13.html#giskh
Hum. So, not entirely incompatible with the gnu ifunc extension,
but certainly not exactly like it either.
Off and on I've been pondering, post-toplevel-libgcc-move, whether
it would make sense to implement the functions therein with different
ISAs and either select the proper version with pre-processor macros
(generating a target-specific libgcc) or with ifuncs if available.
What support does the Solaris 11 assembler have for this feature?
The documentation only mentions the compiler...
r~