conf: Enable BTI checking in the arm64 kernel
To ensure new code has BTI support make it an error to not have the BTI ELF note when linking the kernel and kernel modules. Reviewed by: kib, emaste Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45469
This commit is contained in:
@@ -143,6 +143,9 @@ CFLAGS += -mgeneral-regs-only
|
||||
CFLAGS += -ffixed-x18
|
||||
# Build with BTI+PAC
|
||||
CFLAGS += -mbranch-protection=standard
|
||||
.if ${LINKER_TYPE} == "lld"
|
||||
LDFLAGS += -Wl,-zbti-report=error
|
||||
.endif
|
||||
# TODO: support outline atomics
|
||||
CFLAGS += -mno-outline-atomics
|
||||
INLINE_LIMIT?= 8000
|
||||
|
||||
Reference in New Issue
Block a user