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

Florian Weimer fweimer@redhat.com
Sat Apr 30 16:12:00 GMT 2016


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.

Florian



More information about the Libc-alpha mailing list