mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 21:31:07 +01:00
riscv: always include frame pointer
Specifically it is missing in kernel modules, meaning a proper backtrace can't be constructed. Reviewed by: jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37657
This commit is contained in:
parent
8372afd096
commit
b926b6db37
@ -37,7 +37,7 @@ INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include
|
||||
KERNEL_LMA?= 0x80200000
|
||||
LDFLAGS+= --defsym='kernel_lma=${KERNEL_LMA}'
|
||||
|
||||
.if !empty(DDB_ENABLED)
|
||||
.if !empty(DDB_ENABLED) || !empty(DTRACE_ENABLED) || !empty(HWPMC_ENABLED)
|
||||
CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
|
||||
.endif
|
||||
|
||||
|
@ -160,7 +160,8 @@ LDFLAGS+= --build-id=sha1
|
||||
.endif
|
||||
|
||||
CFLAGS+= ${DEBUG_FLAGS}
|
||||
.if ${MACHINE_CPUARCH} == aarch64 || ${MACHINE_CPUARCH} == amd64
|
||||
.if ${MACHINE_CPUARCH} == aarch64 || ${MACHINE_CPUARCH} == amd64 || \
|
||||
${MACHINE_CPUARCH} == riscv
|
||||
CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user