aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-08-25 09:48:57 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-09 10:29:18 -0300
commitcf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5 (patch)
treeefdb0b39a755c64d85d222de9466332e008c1b81
parentdc41807ca0583fcbe4ec5c30f3b709db8925d5cb (diff)
downloadglibc-cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5.tar
glibc-cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5.tar.gz
glibc-cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5.tar.bz2
glibc-cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5.zip
x86: Use inhibit_stack_protector on tst-ifunc-isa.h
-rw-r--r--sysdeps/x86/tst-ifunc-isa.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/x86/tst-ifunc-isa.h b/sysdeps/x86/tst-ifunc-isa.h
index dc79d260ca..b1f28ef2e1 100644
--- a/sysdeps/x86/tst-ifunc-isa.h
+++ b/sysdeps/x86/tst-ifunc-isa.h
@@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
+#include <stackprotector.h>
#include <sys/platform/x86.h>
enum isa
@@ -29,7 +30,7 @@ enum isa
};
enum isa
-__attribute__ ((__optimize__ ("-fno-stack-protector")))
+inhibit_stack_protector
get_isa (void)
{
if (CPU_FEATURE_ACTIVE (AVX512F))
@@ -84,7 +85,7 @@ isa_none (void)
int foo (void) __attribute__ ((ifunc ("foo_ifunc")));
void *
-__attribute__ ((__optimize__ ("-fno-stack-protector")))
+inhibit_stack_protector
foo_ifunc (void)
{
switch (get_isa ())