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