aarch64: Add optimized chacha20
[glibc.git] / sysdeps / aarch64 / Makefile
blob7dfd1b62dda174a6b09c1c5cfdd0c1640245d3fc
1 long-double-fcts = yes
3 ifeq (yes,$(aarch64-bti))
4 # Mark linker output BTI compatible, it warns on non-BTI inputs.
5 sysdep-LDFLAGS += -Wl,-z,force-bti
6 # Make warnings fatal outside the test system.
7 LDFLAGS-lib.so += -Wl,--fatal-warnings
8 LDFLAGS-rtld += -Wl,-z,force-bti,--fatal-warnings
9 endif
11 ifeq ($(subdir),elf)
12 sysdep-dl-routines += dl-bti
14 tests += tst-audit26 \
15 tst-audit27
17 modules-names += \
18 tst-audit26mod \
19 tst-auditmod26 \
20 tst-audit27mod \
21 tst-auditmod27
23 $(objpfx)tst-audit26: $(objpfx)tst-audit26mod.so \
24 $(objpfx)tst-auditmod26.so
25 LDFLAGS-tst-audit26 += -Wl,-z,lazy
26 tst-audit26-ENV = LD_AUDIT=$(objpfx)tst-auditmod26.so
28 $(objpfx)tst-audit27: $(objpfx)tst-audit27mod.so \
29 $(objpfx)tst-auditmod27.so
30 $(objpfx)tst-audit27mod.so: $(libsupport)
31 LDFLAGS-tst-audit27 += -Wl,-z,lazy
32 tst-audit27-ENV = LD_AUDIT=$(objpfx)tst-auditmod27.so
33 endif
35 ifeq ($(subdir),elf)
36 sysdep-rtld-routines += dl-start
37 sysdep-dl-routines += tlsdesc dl-tlsdesc
38 gen-as-const-headers += dl-link.sym
40 tests-internal += tst-ifunc-arg-1 tst-ifunc-arg-2
42 ifeq (yes,$(aarch64-variant-pcs))
43 tests += tst-vpcs
44 modules-names += tst-vpcs-mod
45 LDFLAGS-tst-vpcs-mod.so = -Wl,-z,lazy
46 $(objpfx)tst-vpcs: $(objpfx)tst-vpcs-mod.so
47 endif
48 endif
50 ifeq ($(subdir),csu)
51 gen-as-const-headers += tlsdesc.sym
52 endif
54 ifeq ($(subdir),stdlib)
55 sysdep_routines += chacha20-aarch64
56 endif
58 ifeq ($(subdir),gmon)
59 CFLAGS-mcount.c += -mgeneral-regs-only
60 endif
62 ifeq ($(subdir),math)
63 CPPFLAGS += -I../soft-fp
64 endif
66 ifeq ($(subdir),misc)
67 sysdep_headers += sys/ifunc.h
68 sysdep_routines += __mtag_tag_zero_region \
69 __mtag_tag_region
70 endif
72 ifeq ($(subdir),malloc)
73 sysdep_malloc_debug_routines = __mtag_tag_zero_region __mtag_tag_region
74 endif