elf: Enable TLS descriptor tests on aarch64
[glibc.git] / sysdeps / arm / Makefile
blob619474eca94fe8e4787ffbc740760562af2dcab4
1 gnulib-arch = $(elf-objpfx)libgcc-stubs.a
2 static-gnulib-arch = $(elf-objpfx)libgcc-stubs.a
4 ifeq ($(subdir),elf)
5 sysdep-dl-routines += tlsdesc dl-tlsdesc
6 sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx
7 sysdep-rtld-routines += aeabi_unwind_cpp_pr1
8 shared-only-routines += aeabi_unwind_cpp_pr1
10 $(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
11 $(build-extra-lib)
13 lib-noranlib: $(objpfx)libgcc-stubs.a
15 ifeq ($(build-shared),yes)
16 ifneq (no,$(have-mtls-descriptor))
17 tests += tst-armtlsdescloc tst-armtlsdescextnow tst-armtlsdescextlazy
18 modules-names += tst-armtlsdesclocmod
19 modules-names += tst-armtlsdescextlazymod tst-armtlsdescextnowmod
20 CPPFLAGS-tst-armtlsdescextnowmod.c += -Dstatic=
21 CPPFLAGS-tst-armtlsdescextlazymod.c += -Dstatic=
22 CFLAGS-tst-armtlsdesclocmod.c += -mtls-dialect=$(have-mtls-descriptor)
23 CFLAGS-tst-armtlsdescextnowmod.c += -mtls-dialect=$(have-mtls-descriptor)
24 CFLAGS-tst-armtlsdescextlazymod.c += -mtls-dialect=$(have-mtls-descriptor)
25 LDFLAGS-tst-armtlsdescextnowmod.so += -Wl,-z,now
26 tst-armtlsdescloc-ENV = LD_BIND_NOW=1
27 tst-armtlsdescextnow-ENV = LD_BIND_NOW=1
28 tst-armtlsdescextlazy-ENV = LD_BIND_NOW=1
29 $(objpfx)tst-armtlsdescloc: $(objpfx)tst-armtlsdesclocmod.so
30 $(objpfx)tst-armtlsdescextnow: $(objpfx)tst-armtlsdescextnowmod.so
31 $(objpfx)tst-armtlsdescextlazy: $(objpfx)tst-armtlsdescextlazymod.so
32 endif
33 endif
34 endif
36 ifeq ($(subdir),csu)
37 # get offset to rtld_global._dl_hwcap
38 gen-as-const-headers += rtld-global-offsets.sym tlsdesc.sym
39 aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
40 aeabi_routines = aeabi_assert aeabi_localeconv aeabi_errno_addr \
41 aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
42 aeabi_memmove aeabi_memset \
43 aeabi_read_tp libc-aeabi_read_tp
45 sysdep_routines += $(aeabi_constants) $(aeabi_routines)
46 static-only-routines += $(aeabi_constants) aeabi_read_tp
47 shared-only-routines += libc-aeabi_read_tp
49 sysdep_routines += arm-unwind-resume
50 shared-only-routines += arm-unwind-resume
51 endif
53 ifeq ($(subdir),gmon)
54 sysdep_routines += arm-mcount
55 endif
57 ifeq ($(subdir),math)
58 CFLAGS-feupdateenv.c += $(config-cflags-wno-ignored-attributes)
59 endif
61 ifeq ($(subdir),rt)
62 librt-sysdep_routines += rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
63 librt-shared-only-routines += rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
64 endif