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
7 sysdep_routines
+= aeabi_read_tp libc-aeabi_read_tp
8 static-only-routines
+= aeabi_read_tp
9 shared-only-routines
+= libc-aeabi_read_tp
13 sysdep-rtld-routines
+= aeabi_read_tp libc-do-syscall
17 sysdep_routines
+= ioperm
18 sysdep_headers
+= sys
/elf.h sys
/io.h
21 ifeq ($(subdir
),signal
)
22 sysdep_routines
+= sigrestorer
25 ifeq ($(subdir
),resource
)
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.
35 ifeq ($(subdir
),crypt
)
36 libcrypt-sysdep_routines
+= libc-do-syscall
40 librt-sysdep_routines
+= libc-do-syscall
41 librt-shared-only-routines
+= libc-do-syscall
45 libpthread-sysdep_routines
+= libc-do-syscall
46 libpthread-shared-only-routines
+= libc-do-syscall
49 ifeq ($(subdir
),resolv
)
50 libanl-sysdep_routines
+= libc-do-syscall
51 libanl-shared-only-routines
+= libc-do-syscall
55 sysdep_routines
+= libc-do-syscall
59 nscd-modules
+= libc-do-syscall
63 libnss_db-sysdep_routines
+= libc-do-syscall
64 libnss_db-shared-only-routines
+= libc-do-syscall
67 ifeq ($(subdir
),posix
)
68 LDFLAGS-tst-rfc3484
+= $(common-objpfx
)csu
/libc-do-syscall.o
69 LDFLAGS-tst-rfc3484-2
+= $(common-objpfx
)csu
/libc-do-syscall.o
70 LDFLAGS-tst-rfc3484-3
+= $(common-objpfx
)csu
/libc-do-syscall.o
73 abi-variants
:= soft hard
75 ifeq (,$(filter $(default-abi
),$(abi-variants
)))
76 Unknown ABI
, must be one of
$(abi-variants
)
80 abi-soft-options
:= -U__ARM_PCS_VFP
81 abi-soft-condition
:= !defined __ARM_PCS_VFP
82 abi-soft-ld-soname
:= ld-linux.so
.3
83 abi-hard-options
:= -D__ARM_PCS_VFP
84 abi-hard-condition
:= defined __ARM_PCS_VFP
85 abi-hard-ld-soname
:= ld-linux-armhf.so
.3