RFC: GCC plugin to find encrypted function pointer calls in glibc

Aldy Hernandez aldyh@redhat.com
Sat Apr 30 16:20:00 GMT 2016


On 04/30/2016 12:12 PM, Florian Weimer wrote:
> On 04/30/2016 03:21 AM, Carlos O'Donell wrote:
>
>> (1) static inline wrapper with function attribute:
>>
>> For a representative set of architectures, say x86_64, i686, ppc64,
>> s390x, aarch64, and arm, does a 4.7 or newer compiler do as good a
>> job with a static inline function as it does with the macro that
>> evaluates to a bare assembly?
>
> We need both because the inline function cannot be type-generic.  There
> would have to be a macro wrapping the inline function, with an
> appropriate cast to preserve the function pointer type.

Correct, but it's localized in one file per architecture, right?  So, 
not a big problem?



More information about the Libc-alpha mailing list