[PATCH 03/17 v6] Do not stack-protect ifunc resolvers.

Mike Frysinger vapier@gentoo.org
Sun Apr 10 03:59:00 GMT 2016


On 13 Mar 2016 15:16, Nix wrote:
> When dynamically linking, ifunc resolvers are called before TLS is
> initialized, so they cannot be safely stack-protected.
> 
> We avoid disabling stack-protection on large numbers of files by
> using __attribute__ ((__optimize__ ("-fno-stack-protector")))
> to turn it off just for the resolvers themselves.  (We provide
> the attribute even when statically linking, because we will later
> use it elsewhere too.)

this looks OK to me
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160410/2f191841/attachment.sig>


More information about the Libc-alpha mailing list