diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-08-25 09:48:57 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-09 16:36:05 -0300 |
commit | 33715a75d3841fbb6d508fa786235ba909794534 (patch) | |
tree | 1db902a06ba179cb8d6ebb49a4f57a084a1846b5 | |
parent | 42eea0b5d556c42ff500e80a5cef2324c3c4fef6 (diff) | |
download | glibc-33715a75d3841fbb6d508fa786235ba909794534.tar.gz |
x86: Use inhibit_stack_protector on tst-ifunc-isa.h
-rw-r--r-- | sysdeps/x86/tst-ifunc-isa.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/x86/tst-ifunc-isa.h b/sysdeps/x86/tst-ifunc-isa.h index 739388cf09..4160ddc38c 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 ()) |