[PATCH 09/14 v6] Add stack_chk_fail_local to libc.so.

Florian Weimer fweimer@redhat.com
Fri Jun 24 14:39:00 GMT 2016


On 06/07/2016 01:06 PM, Nix wrote:
> This is required by the next commit, which routes all
> __stack_chk_fail() calls in libc.so via this function to avoid
> the PLT.  It has be duplicated in libc.so and libc_nonshared.a
> because its entire reason for existence is to be hidden and avoid
> the PLT, so the copy in libc.so is not visible from elsewhere.

Why can't this use the regular libc_hidden_proto/libc_hidden_def 
mechanism?  The proto part is taken care of by the next patch, I get 
that, but why doesn't this follow the usual __GI_ pattern?

Thanks,
Florian



More information about the Libc-alpha mailing list