This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/2] Multiarch hooks for memcpy variants
On Wednesday 16 August 2017 02:31 AM, Zack Weinberg wrote:
> They are already exported by libc.so.6 so we are stuck with them, but
> what if we demote the copies in libc.so.6 to compat symbols and shove
> the "real" versions into libc_nonshared.a? Then their calls to their
> "normal" counterparts will naturally go through the PLT and hit the
> "proper" ifuncs, without any messing around with assembly language.
> The compat symbols can continue to call the 'generic' functions until
> we get around to deciding we want to stop bypassing the PLT for
> intra-libc ifunc calls.
Hmm, this may work for me (i.e. do memcpy via PLT instead and then add
it as a compat symbol to libc.so and also into libc_nonshared.a) so that
only the backport needs the check-localplt override and not upstream.
I'll give it a shot next month since I'm going underground next week for
the rest of the month.
Siddhesh