[PATCH 2.25] powerpc: Avoid calling strncmp via PLT on GCC 7
Tulio Magno Quites Machado Filho
tuliom@linux.vnet.ibm.com
Tue Jan 17 17:23:00 GMT 2017
Florian Weimer <fw@deneb.enyo.de> writes:
> [ text/plain ]
> * Tulio Magno Quites Machado Filho:
>
>> +/* GCC 7.0 added support for a builtin strncmp that is used on POWER >= 7. */
>> +#if !defined __ASSEMBLER__ && IS_IN (libc) && defined SHARED \
>> + && defined _ARCH_PWR7
>> +asm ("strncmp = __GI_strncmp");
>> +#endif
>
> Would it be safe to do this unconditionally, in the generic header?
Do you mean without _ARCH_PWR7?
If so, I think that's possible and in the generic header.
If this issue won't be fixed in GCC, I'll make that change here.
--
Tulio Magno
More information about the Libc-alpha
mailing list