kern.mk (43e8849bc29414036ccaef7788de95a07ad32ab5) kern.mk (973bbdab47035ebd16200c63d095904924dc44d9)
1
2#
3# Warning flags for compiling the kernel and components of the kernel:
4#
5CWARNFLAGS?= -Wall -Wstrict-prototypes \
6 -Wmissing-prototypes -Wpointer-arith -Wcast-qual \
7 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \
8 -Wmissing-include-dirs -fdiagnostics-show-option \

--- 129 unchanged lines hidden (view full) ---

138
139.if ${MACHINE_CPUARCH} == "aarch64"
140# We generally don't want fpu instructions in the kernel.
141CFLAGS += -mgeneral-regs-only
142# Reserve x18 for pcpu data
143CFLAGS += -ffixed-x18
144# Build with BTI+PAC
145CFLAGS += -mbranch-protection=standard
1
2#
3# Warning flags for compiling the kernel and components of the kernel:
4#
5CWARNFLAGS?= -Wall -Wstrict-prototypes \
6 -Wmissing-prototypes -Wpointer-arith -Wcast-qual \
7 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \
8 -Wmissing-include-dirs -fdiagnostics-show-option \

--- 129 unchanged lines hidden (view full) ---

138
139.if ${MACHINE_CPUARCH} == "aarch64"
140# We generally don't want fpu instructions in the kernel.
141CFLAGS += -mgeneral-regs-only
142# Reserve x18 for pcpu data
143CFLAGS += -ffixed-x18
144# Build with BTI+PAC
145CFLAGS += -mbranch-protection=standard
146.if ${LINKER_TYPE} == "lld"
146.if ${LINKER_FEATURES:Mbti-report}
147LDFLAGS += -Wl,-zbti-report=error
148.endif
149# TODO: support outline atomics
150CFLAGS += -mno-outline-atomics
151INLINE_LIMIT?= 8000
152.endif
153
154#

--- 181 unchanged lines hidden ---
147LDFLAGS += -Wl,-zbti-report=error
148.endif
149# TODO: support outline atomics
150CFLAGS += -mno-outline-atomics
151INLINE_LIMIT?= 8000
152.endif
153
154#

--- 181 unchanged lines hidden ---