]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/x86/Makefile
x86/CET: Fix property note parser [BZ #23467]
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / x86 / Makefile
CommitLineData
0ab0291b
L
1# We don't need any header files.
2abi-includes :=
3
4abi-variants := 32 64 x32
5
0ab0291b 6abi-32-condition := !defined __x86_64__
0ab0291b 7abi-64-condition := defined __x86_64__ && defined __LP64__
0ab0291b 8abi-x32-condition := defined __x86_64__ && defined __ILP32__
3bd872c4
L
9
10ifeq ($(subdir),misc)
11sysdep_headers += sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h sys/io.h
12endif
039890a6
RM
13
14ifeq ($(subdir),nptl)
039890a6
RM
15libpthread-sysdep_routines += elision-lock elision-unlock elision-timed \
16 elision-trylock
17endif
ca677d3c
AZ
18
19ifeq ($(subdir),elf)
20sysdep_routines += dl-vdso
21endif
f33632cc
L
22
23ifeq ($(subdir),setjmp)
f33632cc
L
24tests += tst-saved_mask-1
25endif
08ac6bed
L
26
27ifeq ($(enable-cet),yes)
98864ed0
L
28ifeq ($(subdir),elf)
29tests += tst-cet-property-1 tst-cet-property-2
30
31CFLAGS-tst-cet-property-1.o += -fcf-protection
32ASFLAGS-tst-cet-property-dep-2.o += -fcf-protection
33
34$(objpfx)tst-cet-property-2: $(objpfx)tst-cet-property-dep-2.o
35$(objpfx)tst-cet-property-2.out: $(objpfx)tst-cet-property-2 \
36 $(objpfx)tst-cet-property-1.out
37 env $(run-program-env) $(test-via-rtld-prefix) \
38 $(objpfx)tst-cet-property-2 \
39 < $(objpfx)tst-cet-property-1.out > $@; \
40 $(evaluate-test)
41endif
42
08ac6bed
L
43ifeq ($(subdir),stdlib)
44tests += tst-cet-setcontext-1
45CFLAGS-tst-cet-setcontext-1.c += -mshstk
46endif
47endif