xref: /freebsd/lib/libc/arm/aeabi/Makefile.inc (revision c5c02a131a0e2ef52771e683269bc8778fe511f3)
1.PATH: ${LIBC_SRCTOP}/arm/aeabi
2
3SRCS+=	aeabi_atexit.c		\
4	aeabi_unwind_cpp.c	\
5	aeabi_unwind_exidx.c
6.if defined(CPUTYPE) && ${CPUTYPE:M*soft*} != ""
7SRCS+=	aeabi_asm_double.S	\
8	aeabi_asm_float.S	\
9	aeabi_double.c		\
10	aeabi_float.c
11.endif
12.if !defined(CPUTYPE) || ${CPUTYPE:M*soft*} == ""
13SRCS+=	aeabi_vfp_double.S	\
14	aeabi_vfp_float.S
15.endif
16
17# Add the aeabi_mem* functions. While they live in compiler-rt they call into
18# libc. This causes issues when other parts of libc call these functions.
19# We work around this by including these functions in libc but mark them as
20# hidden so users of libc will not pick up these versions.
21.PATH: ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins/arm
22
23SRCS+=	aeabi_memcmp.S		\
24	aeabi_memcpy.S		\
25	aeabi_memmove.S		\
26	aeabi_memset.S
27
28SRCS+=	aeabi_int_div.S
29
30SYM_MAPS+=${LIBC_SRCTOP}/arm/aeabi/Symbol.map
31