2014-05-21 18:52:08 +02:00
|
|
|
gnulib-arch = $(elf-objpfx)libgcc-stubs.a
|
|
|
|
static-gnulib-arch = $(elf-objpfx)libgcc-stubs.a
|
2012-07-03 21:14:59 +02:00
|
|
|
|
2015-10-28 00:56:50 +01:00
|
|
|
# All supported build tools support TLS descriptors, but the OS may not.
|
|
|
|
ifndef have-arm-tls-desc
|
|
|
|
have-arm-tls-desc = yes
|
|
|
|
endif
|
|
|
|
|
2011-03-05 04:39:15 +01:00
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
sysdep-dl-routines += tlsdesc dl-tlsdesc
|
2015-02-06 19:42:08 +01:00
|
|
|
sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx
|
|
|
|
sysdep-rtld-routines += aeabi_unwind_cpp_pr1
|
2012-04-21 18:30:03 +02:00
|
|
|
shared-only-routines += aeabi_unwind_cpp_pr1
|
2012-07-03 21:14:59 +02:00
|
|
|
|
|
|
|
$(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
|
|
|
|
$(build-extra-lib)
|
|
|
|
|
|
|
|
lib-noranlib: $(objpfx)libgcc-stubs.a
|
2014-06-20 21:08:03 +02:00
|
|
|
|
|
|
|
ifeq ($(build-shared),yes)
|
|
|
|
ifeq ($(have-arm-tls-desc),yes)
|
|
|
|
tests += tst-armtlsdescloc tst-armtlsdescextnow tst-armtlsdescextlazy
|
|
|
|
modules-names += tst-armtlsdesclocmod
|
|
|
|
modules-names += tst-armtlsdescextlazymod tst-armtlsdescextnowmod
|
|
|
|
CPPFLAGS-tst-armtlsdescextnowmod.c += -Dstatic=
|
|
|
|
CPPFLAGS-tst-armtlsdescextlazymod.c += -Dstatic=
|
|
|
|
CFLAGS-tst-armtlsdesclocmod.c += -mtls-dialect=gnu2
|
|
|
|
CFLAGS-tst-armtlsdescextnowmod.c += -mtls-dialect=gnu2
|
|
|
|
CFLAGS-tst-armtlsdescextlazymod.c += -mtls-dialect=gnu2
|
|
|
|
LDFLAGS-tst-armtlsdescextnowmod.so += -Wl,-z,now
|
|
|
|
tst-armtlsdescloc-ENV = LD_BIND_NOW=1
|
|
|
|
tst-armtlsdescextnow-ENV = LD_BIND_NOW=1
|
|
|
|
tst-armtlsdescextlazy-ENV = LD_BIND_NOW=1
|
|
|
|
$(objpfx)tst-armtlsdescloc: $(objpfx)tst-armtlsdesclocmod.so
|
|
|
|
$(objpfx)tst-armtlsdescextnow: $(objpfx)tst-armtlsdescextnowmod.so
|
|
|
|
$(objpfx)tst-armtlsdescextlazy: $(objpfx)tst-armtlsdescextlazymod.so
|
|
|
|
endif
|
|
|
|
endif
|
2011-03-05 04:39:15 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),csu)
|
2012-04-21 18:30:03 +02:00
|
|
|
# get offset to rtld_global._dl_hwcap
|
|
|
|
gen-as-const-headers += rtld-global-offsets.sym tlsdesc.sym
|
|
|
|
aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
|
|
|
|
aeabi_routines = aeabi_assert aeabi_localeconv aeabi_errno_addr \
|
2014-06-27 00:08:29 +02:00
|
|
|
aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
|
|
|
|
aeabi_memmove aeabi_memset \
|
|
|
|
aeabi_read_tp libc-aeabi_read_tp
|
2012-04-21 18:30:03 +02:00
|
|
|
|
|
|
|
sysdep_routines += $(aeabi_constants) $(aeabi_routines)
|
2014-06-27 00:08:29 +02:00
|
|
|
static-only-routines += $(aeabi_constants) aeabi_read_tp
|
|
|
|
shared-only-routines += libc-aeabi_read_tp
|
|
|
|
|
2015-01-05 23:01:49 +01:00
|
|
|
sysdep_routines += arm-unwind-resume
|
|
|
|
shared-only-routines += arm-unwind-resume
|
2011-03-05 04:39:15 +01:00
|
|
|
endif
|
2012-01-06 21:14:44 +01:00
|
|
|
|
2012-04-21 18:30:03 +02:00
|
|
|
ifeq ($(subdir),gmon)
|
|
|
|
sysdep_routines += arm-mcount
|
|
|
|
endif
|
|
|
|
|
2014-06-27 00:08:29 +02:00
|
|
|
ifeq ($(subdir),rt)
|
2015-01-05 23:01:49 +01:00
|
|
|
librt-sysdep_routines += rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
|
|
|
|
librt-shared-only-routines += rt-aeabi_unwind_cpp_pr1 rt-arm-unwind-resume
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),nptl)
|
|
|
|
libpthread-sysdep_routines += pt-arm-unwind-resume
|
|
|
|
libpthread-shared-only-routines += pt-arm-unwind-resume
|
2014-06-27 00:08:29 +02:00
|
|
|
endif
|