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