diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-16 19:20:54 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 12:55:50 +0800 |
commit | d9d30f6cb582fbd3932aa4731061c6335ffc5a70 (patch) | |
tree | 74b702da46a9377a9adf61f1f4dce3182f5025e2 /elf/Makefile | |
parent | f5fb9fa011f242bfd8c291fe876532ebd252397e (diff) | |
download | glibc-d9d30f6cb582fbd3932aa4731061c6335ffc5a70.zip glibc-d9d30f6cb582fbd3932aa4731061c6335ffc5a70.tar.gz glibc-d9d30f6cb582fbd3932aa4731061c6335ffc5a70.tar.bz2 |
Enable execstack tests only if compiler supports trampoline
Since trampoline is required to test execstack, enable execstack tests
only if compiler supports trampoline.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index a5a25a8..b62836d 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -557,12 +557,14 @@ endif selinux-enabled := $(shell cat /selinux/enforce 2> /dev/null) ifneq ($(selinux-enabled),1) +ifeq ($(have-test-cc-trampoline),yes) tests-execstack-yes = \ tst-execstack \ tst-execstack-needed \ tst-execstack-prog \ # tests-execstack-yes endif +endif ifeq ($(have-depaudit),yes) tests += \ tst-audit14 \ @@ -1146,7 +1148,9 @@ tests-pie += vismain CFLAGS-vismain.c += $(PIE-ccflag) endif endif +ifeq ($(have-test-cc-trampoline),yes) modules-execstack-yes = tst-execstack-mod +endif extra-test-objs += $(addsuffix .os,$(strip $(modules-names))) # filtmod1.so, tst-big-note-lib.so, tst-ro-dynamic-mod.so have special |