diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-08-25 09:48:57 -0300 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 13:19:12 +0800 |
| commit | 6412d8cc46d7e9c8811e6251045fdefb89a5d6aa (patch) | |
| tree | cbf634263d77f5d7520bc1de3d49f2f70cc0cc3e /sysdeps/x86 | |
| parent | 03feea74dc75397f7eff10a92a322d235a6c1751 (diff) | |
| download | glibc-6412d8cc46d7e9c8811e6251045fdefb89a5d6aa.tar.xz glibc-6412d8cc46d7e9c8811e6251045fdefb89a5d6aa.zip | |
x86: Use inhibit_stack_protector on tst-ifunc-isa.h
Co-Authored-By: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sysdeps/x86')
| -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 dc79d260ca..c9451ad874 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 <libc-misc.h> #include <sys/platform/x86.h> enum isa @@ -29,7 +30,7 @@ enum isa }; enum isa -__attribute__ ((__optimize__ ("-fno-stack-protector"))) +test_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"))) +test_inhibit_stack_protector foo_ifunc (void) { switch (get_isa ()) |
