svn commit: r292993 - head/lib/libstand
Ian Lepore
ian at FreeBSD.org
Thu Dec 31 18:29:26 UTC 2015
Author: ian
Date: Thu Dec 31 18:29:24 2015
New Revision: 292993
URL: https://svnweb.freebsd.org/changeset/base/292993
Log:
When building libstand for arm, don't emit instructions that require
relocation fixups unsupported by the self_reloc() code, and don't optimize
memcpy/memset using floating point registers, because in a standalone
environment nothing has initialized the fpu hardware.
Modified:
head/lib/libstand/Makefile
Modified: head/lib/libstand/Makefile
==============================================================================
--- head/lib/libstand/Makefile Thu Dec 31 18:12:35 2015 (r292992)
+++ head/lib/libstand/Makefile Thu Dec 31 18:29:24 2015 (r292993)
@@ -44,6 +44,12 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c memc
.if ${MACHINE_CPUARCH} == "arm"
.PATH: ${LIBC_SRC}/arm/gen
+# Do not generate movt/movw, because the relocation fixup for them does not
+# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
+# Also, the fpu is not available in a standalone environment.
+CFLAGS.clang+= -mllvm -arm-use-movt=0
+CFLAGS.clang+= -mfpu=none
+
# Compiler support functions
.PATH: ${LIBSTAND_SRC}/../../contrib/compiler-rt/lib/builtins/
# __clzsi2 and ctzsi2 for various builtin functions
More information about the svn-src-head
mailing list