mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
Don't allow clang to use fpu instructions or registers in kernel modules.
Submitted by: Keith White <kwhite@site.uottawa.ca>
This commit is contained in:
parent
fbf1ef4849
commit
c6f7b90092
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276645
@ -119,8 +119,10 @@ CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
|
||||
.endif
|
||||
|
||||
# Temporary workaround for PR 196407, which contains the fascinating details.
|
||||
# Don't allow clang to use fpu instructions or registers in kernel modules.
|
||||
.if ${MACHINE_CPUARCH} == arm
|
||||
CFLAGS.clang+= -mllvm -arm-use-movt=0
|
||||
CFLAGS.clang+= -mfpu=none
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == powerpc
|
||||
|
Loading…
Reference in New Issue
Block a user