1 gnulib-arch
= $(elf-objpfx
)libgcc-stubs.a
2 static-gnulib-arch
= $(elf-objpfx
)libgcc-stubs.a
4 # All supported build tools support TLS descriptors, but the OS may not.
5 ifndef have-arm-tls-desc
6 have-arm-tls-desc
= yes
10 sysdep-dl-routines
+= tlsdesc dl-tlsdesc
11 sysdep_routines
+= aeabi_unwind_cpp_pr1 find_exidx
12 sysdep-rtld-routines
+= aeabi_unwind_cpp_pr1
13 shared-only-routines
+= aeabi_unwind_cpp_pr1
15 $(objpfx
)libgcc-stubs.a
: $(objpfx
)aeabi_unwind_cpp_pr1.os
18 lib-noranlib
: $(objpfx
)libgcc-stubs.a
20 ifeq ($(build-shared
),yes
)
21 ifeq ($(have-arm-tls-desc
),yes
)
22 tests
+= tst-armtlsdescloc tst-armtlsdescextnow tst-armtlsdescextlazy
23 modules-names
+= tst-armtlsdesclocmod
24 modules-names
+= tst-armtlsdescextlazymod tst-armtlsdescextnowmod
25 CPPFLAGS-tst-armtlsdescextnowmod.c
+= -Dstatic
=
26 CPPFLAGS-tst-armtlsdescextlazymod.c
+= -Dstatic
=
27 CFLAGS-tst-armtlsdesclocmod.c
+= -mtls-dialect
=gnu2
28 CFLAGS-tst-armtlsdescextnowmod.c
+= -mtls-dialect
=gnu2
29 CFLAGS-tst-armtlsdescextlazymod.c
+= -mtls-dialect
=gnu2
30 LDFLAGS-tst-armtlsdescextnowmod.so
+= -Wl
,-z
,now
31 tst-armtlsdescloc-ENV
= LD_BIND_NOW
=1
32 tst-armtlsdescextnow-ENV
= LD_BIND_NOW
=1
33 tst-armtlsdescextlazy-ENV
= LD_BIND_NOW
=1
34 $(objpfx
)tst-armtlsdescloc
: $(objpfx
)tst-armtlsdesclocmod.so
35 $(objpfx
)tst-armtlsdescextnow
: $(objpfx
)tst-armtlsdescextnowmod.so
36 $(objpfx
)tst-armtlsdescextlazy
: $(objpfx
)tst-armtlsdescextlazymod.so
42 # get offset to rtld_global._dl_hwcap
43 gen-as-const-headers
+= rtld-global-offsets.sym tlsdesc.sym
44 aeabi_constants
= aeabi_lcsts aeabi_sighandlers aeabi_math
45 aeabi_routines
= aeabi_assert aeabi_localeconv aeabi_errno_addr \
46 aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
47 aeabi_memmove aeabi_memset \
48 aeabi_read_tp libc-aeabi_read_tp
50 sysdep_routines
+= $(aeabi_constants
) $(aeabi_routines
)
51 static-only-routines
+= $(aeabi_constants
) aeabi_read_tp
52 shared-only-routines
+= libc-aeabi_read_tp
54 sysdep_routines
+= arm-unwind-resume
55 shared-only-routines
+= arm-unwind-resume
59 sysdep_routines
+= arm-mcount
63 librt-sysdep_routines
+= rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
64 librt-shared-only-routines
+= rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
68 libpthread-sysdep_routines
+= pt-arm-unwind-resume
69 libpthread-shared-only-routines
+= pt-arm-unwind-resume