This is the mail archive of the
mailing list for the glibc project.
Re: RFC: GCC plugin to find encrypted function pointer calls in glibc
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, "Carlos O'Donell" <carlos at redhat dot com>, libc-alpha at sourceware dot org
- Date: Sat, 30 Apr 2016 12:20:16 -0400
- Subject: Re: RFC: GCC plugin to find encrypted function pointer calls in glibc
- Authentication-results: sourceware.org; auth=none
- References: <57233606 dot 7050205 at redhat dot com> <57240891 dot 1000308 at redhat dot com> <5724D985 dot 5080302 at redhat dot com>
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?