aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncdep2.c
AgeCommit message (Collapse)AuthorFilesLines
2016-12-26Do not stack-protect ifunc resolvers [BZ #7065]Nick Alcock1-0/+3
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.)
2015-03-06Replace __attribute__((visibility("protected")))H.J. Lu1-1/+7
With copy relocation, address of protected data defined in the shared library may be external. Compiler shouldn't asssume protected data will be local. But due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 __attribute__((visibility("protected"))) doesn't work correctly, we need to use asm (".protected xxx") instead. * elf/ifuncdep2.c (global): Replace __attribute__((visibility("protected"))) with asm (".protected global"). * elf/ifuncmod1.c (global): Likewise. * elf/ifuncmod5.c (global): Likewise.
2013-06-05Remove trailing whitespace.Joseph Myers1-4/+4
2009-10-30Uglify IFUNC tests for PPC.Alan Modra1-28/+6
2009-06-03Test for ELF IFUNC functionality.H.J. Lu1-0/+72