Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/Makefile.inc
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <bsd.own.mk> | .include <bsd.own.mk> | ||||
SSP_CFLAGS= | SSP_CFLAGS= | ||||
# Optimize binaries for size to give more room on freebsd-boot partitions, etc. | |||||
CFLAGS+= -Os | |||||
emaste: I wonder if we should use -Oz for Clang? | |||||
tsoomeUnsubmitted Not Done Inline ActionsIt has to be verified for sure, last time I did test, the gptzfsboot was broken by it - but there has been some clang updates meanwhile. tsoome: It has to be verified for sure, last time I did test, the gptzfsboot was broken by it - but… | |||||
.if ${MACHINE_CPUARCH} == "arm" | .if ${MACHINE_CPUARCH} == "arm" | ||||
# Do not generate movt/movw, because the relocation fixup for them does not | # 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). | # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). | ||||
# Also, the fpu is not available in a standalone environment. | # Also, the fpu is not available in a standalone environment. | ||||
.if ${COMPILER_VERSION} < 30800 | .if ${COMPILER_VERSION} < 30800 | ||||
CFLAGS.clang+= -mllvm -arm-use-movt=0 | CFLAGS.clang+= -mllvm -arm-use-movt=0 | ||||
.else | .else | ||||
CFLAGS.clang+= -mno-movt | CFLAGS.clang+= -mno-movt | ||||
Show All 10 Lines |
I wonder if we should use -Oz for Clang?