diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-04-09 19:48:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-04-09 19:48:38 +0000 |
commit | 6c5c2ff6b963e0fa73cd13d8c4a4eb9ca4559eaa (patch) | |
tree | 57f9ebcf98429226215ffbd74b5b6d7ee947a01c /sys/arch/arm64/conf | |
parent | 8b4f54a41d2afcc8169b3830081f4599ae0dce2e (diff) |
So clang 13 miscompiles dev/usb/umass_scsi.c with the combination if -Oz
and -mbranch-protection=bti. So turn off the BTI protection in ramdisk
kernels for now.
ok deraadt@, miod@, phessler@
Diffstat (limited to 'sys/arch/arm64/conf')
-rw-r--r-- | sys/arch/arm64/conf/Makefile.arm64 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/arm64/conf/Makefile.arm64 b/sys/arch/arm64/conf/Makefile.arm64 index 6bd73a674f6..1719e3d045d 100644 --- a/sys/arch/arm64/conf/Makefile.arm64 +++ b/sys/arch/arm64/conf/Makefile.arm64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.arm64,v 1.45 2023/03/27 19:02:47 kettenis Exp $ +# $OpenBSD: Makefile.arm64,v 1.46 2023/04/09 19:48:37 kettenis Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -61,7 +61,7 @@ CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option CMACHFLAGS= -march=armv8-a+nofp+nosimd \ -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer \ - -ffixed-x18 -mbranch-protection=bti + -ffixed-x18 CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS} SORTR= sort -R .if ${IDENT:M-DNO_PROPOLICE} @@ -70,6 +70,9 @@ CMACHFLAGS+= -fno-stack-protector .if ${IDENT:M-DSMALL_KERNEL} SORTR= cat COPTIMIZE?= -Oz +CMACHFLAGS+= -mbranch-protection=none +.else +CMACHFLAGS+= -mbranch-protection=bti .endif DEBUG?= -g |