Makefile.inc revision 269792
1245655Sandrew# $FreeBSD: stable/10/lib/libc/arm/aeabi/Makefile.inc 269792 2014-08-10 22:26:29Z ian $
2245655Sandrew
3245655Sandrew.PATH: ${.CURDIR}/arm/aeabi
4245655Sandrew
5245655SandrewSRCS+=	aeabi_atexit.c		\
6245655Sandrew	aeabi_double.c		\
7245655Sandrew	aeabi_float.c		\
8269792Sian	aeabi_unwind_cpp.c	\
9269792Sian	aeabi_unwind_exidx.c
10266314Sian.if ${MACHINE_ARCH:Marmv6*}
11266314SianSRCS+=	aeabi_vfp_double.S	\
12266314Sian	aeabi_vfp_float.S
13266314Sian.endif
14245655Sandrew
15246706Sandrew# Add the aeabi_mem* functions. While they live in compiler-rt they call into
16246706Sandrew# libc. This causes issues when other parts of libc call these functions.
17246706Sandrew# We work around this by including these functions in libc but mark them as
18246706Sandrew# hidden so users of libc will not pick up these versions.
19246706Sandrew.PATH: ${.CURDIR}/../../contrib/compiler-rt/lib/arm
20246706Sandrew
21246706SandrewSRCS+=	aeabi_memcmp.S		\
22246706Sandrew	aeabi_memcpy.S		\
23246706Sandrew	aeabi_memmove.S		\
24246706Sandrew	aeabi_memset.S
25246706Sandrew
26246706Sandrew# Mark the functions as hidden so they are not available outside of libc.
27246706SandrewCFLAGS.aeabi_memcmp.S=	-DVISIBILITY_HIDDEN
28246706SandrewCFLAGS.aeabi_memcpy.S=	-DVISIBILITY_HIDDEN
29246706SandrewCFLAGS.aeabi_memmove.S=	-DVISIBILITY_HIDDEN
30246706SandrewCFLAGS.aeabi_memset.S=	-DVISIBILITY_HIDDEN
31246706SandrewCFLAGS+=		${CFLAGS.${.IMPSRC:T}}
32246706Sandrew
33246706Sandrew
34245655SandrewSYM_MAPS+=${.CURDIR}/arm/aeabi/Symbol.map
35245655Sandrew
36