aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-17 06:18:55 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-18 01:20:16 +0800
commit215447f5cbcf1a494cded57734f68d7f9c2b0dc0 (patch)
tree102b087a145261e064097292bb94d7ca78eb8ab9 /sysdeps
parentcff9648d0b50d19cdaf685f6767add040d4e1a8e (diff)
downloadglibc-215447f5cbcf1a494cded57734f68d7f9c2b0dc0.zip
glibc-215447f5cbcf1a494cded57734f68d7f9c2b0dc0.tar.gz
glibc-215447f5cbcf1a494cded57734f68d7f9c2b0dc0.tar.bz2
cet: Pass -mshstk to compiler for tst-cet-legacy-10a[-static].c
Pass -mshstk to compiler to silence Clang: In file included from ../sysdeps/x86_64/tst-cet-legacy-10a.c:2: ../sysdeps/x86_64/tst-cet-legacy-10.c:29:7: error: always_inline function '_get_ssp' requires target feature 'shstk', but would be inlined into function 'do_test' that is compiled without support for 'shstk' 29 | if (_get_ssp () != 0) | ^ Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index ce949db..9e19cf7 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -354,8 +354,8 @@ CFLAGS-tst-cet-legacy-mod-6c.c += -fcf-protection
CFLAGS-tst-cet-legacy-7.c += -fcf-protection=none
CFLAGS-tst-cet-legacy-10.c += -mshstk
CFLAGS-tst-cet-legacy-10-static.c += -mshstk
-CFLAGS-tst-cet-legacy-10a.c += -fcf-protection=none
-CFLAGS-tst-cet-legacy-10a-static.c += -fcf-protection=none
+CFLAGS-tst-cet-legacy-10a.c += -fcf-protection=none -mshstk
+CFLAGS-tst-cet-legacy-10a-static.c += -fcf-protection=none -mshstk
tst-cet-legacy-4-ENV = GLIBC_TUNABLES=glibc.cpu.hwcaps=SHSTK
tst-cet-legacy-6-ENV = GLIBC_TUNABLES=glibc.cpu.hwcaps=SHSTK