2
# In order for unwinding to fail when it falls out of main, we need a
3
# cantunwind marker. There's one in start.S. To make sure we reach it, add
4
# unwind tables for __libc_start_main.
5
CFLAGS-libc-start.c += -fexceptions
2
7
sysdep_routines += aeabi_read_tp libc-aeabi_read_tp
3
8
static-only-routines += aeabi_read_tp
4
9
shared-only-routines += libc-aeabi_read_tp
20
25
ifeq ($(subdir),resource)
21
26
sysdep_routines += oldgetrlimit64
29
ifeq ($(subdir),stdlib)
30
gen-as-const-headers += ucontext_i.sym
33
# Add a syscall function to each library that needs one.
36
librt-sysdep_routines += libc-do-syscall
37
librt-shared-only-routines += libc-do-syscall
41
libpthread-sysdep_routines += libc-do-syscall
42
libpthread-shared-only-routines += libc-do-syscall
45
ifeq ($(subdir),resolv)
46
libanl-sysdep_routines += libc-do-syscall
47
libanl-shared-only-routines += libc-do-syscall
51
sysdep_routines += libc-do-syscall
55
nscd-modules += libc-do-syscall
59
libnss_db-sysdep_routines += libc-do-syscall
60
libnss_db-shared-only-routines += libc-do-syscall
63
ifeq ($(subdir),posix)
64
LDFLAGS-tst-rfc3484 += $(common-objpfx)csu/libc-do-syscall.o
65
LDFLAGS-tst-rfc3484-2 += $(common-objpfx)csu/libc-do-syscall.o
66
LDFLAGS-tst-rfc3484-3 += $(common-objpfx)csu/libc-do-syscall.o
69
define default-abi-prog
70
echo '#ifdef __ARM_PCS_VFP';
76
default-abi := $(strip $(shell \
77
($(default-abi-prog)) | $(CC) $(CFLAGS) $(CPPFLAGS) -E -P -))
78
ifeq ($(default-abi),hard)
81
ifneq ($(default-abi),soft)
82
Unknown ABI, must be "hard" or "soft".
87
abi-variants := soft hard
88
abi-soft-options := -U__ARM_PCS_VFP
89
abi-soft-condition := !defined __ARM_PCS_VFP
90
abi-soft-ld-soname := ld-linux.so.3
91
abi-hard-options := -D__ARM_PCS_VFP
92
abi-hard-condition := defined __ARM_PCS_VFP
93
abi-hard-ld-soname := ld-linux-armhf.so.3