]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/x86/Makefile
x86/CET: Fix property note parser [BZ #23467]
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / x86 / Makefile
index a30fdb1dc19f006d096337d96e23591e29f85bdb..7dc4e61756b56b210397e97c6aa8a0c6c0739078 100644 (file)
@@ -25,6 +25,21 @@ tests += tst-saved_mask-1
 endif
 
 ifeq ($(enable-cet),yes)
+ifeq ($(subdir),elf)
+tests += tst-cet-property-1 tst-cet-property-2
+
+CFLAGS-tst-cet-property-1.o += -fcf-protection
+ASFLAGS-tst-cet-property-dep-2.o += -fcf-protection
+
+$(objpfx)tst-cet-property-2: $(objpfx)tst-cet-property-dep-2.o
+$(objpfx)tst-cet-property-2.out: $(objpfx)tst-cet-property-2 \
+                                $(objpfx)tst-cet-property-1.out
+       env $(run-program-env) $(test-via-rtld-prefix) \
+         $(objpfx)tst-cet-property-2 \
+         < $(objpfx)tst-cet-property-1.out > $@; \
+         $(evaluate-test)
+endif
+
 ifeq ($(subdir),stdlib)
 tests += tst-cet-setcontext-1
 CFLAGS-tst-cet-setcontext-1.c += -mshstk