Don't allow to use FPU inside of rtld library.

Clang10 may use FPU instructions for optimizing operations with
memory blocks. But we don't want to do lengthy save/restore of all
FPU registers across each rtld_start() call.

MFC after:	3 week
This commit is contained in:
Michal Meloun 2020-04-29 14:06:42 +00:00
parent 726122cfda
commit 7838a78269
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360463

View File

@ -48,6 +48,9 @@ MLINKS?= rtld.1 ld-elf.so.1.1 \
rtld.1 ld.so.1
CFLAGS+= -fpic -DPIC $(DEBUG)
CFLAGS.armv6+= -mfpu=none
CFLAGS.armv7+= -mfpu=none
LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs -nostdlib -e ${RTLD_ENTRY}
# Pull in the dependencies that we use from libc
.include "rtld-libc/Makefile.inc"