mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
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.)
fw/bug21041
committed by
Florian Weimer
16 changed files with 62 additions and 1 deletions
Loading…
Reference in new issue