mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Only use -mno-apcs-frame if DDB is not in the kernel, as it prevent the
backtraces from working. MFC After: 3 days
This commit is contained in:
parent
dbde02fe74
commit
2371afbf82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160629
@ -44,12 +44,15 @@ LD += -EB
|
|||||||
|
|
||||||
|
|
||||||
.if !defined(DEBUG) && !defined(PROFLEVEL)
|
.if !defined(DEBUG) && !defined(PROFLEVEL)
|
||||||
CFLAGS += -mno-apcs-frame
|
|
||||||
STRIP_FLAGS = -S
|
STRIP_FLAGS = -S
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
DDB_ENABLED!= grep DDB opt_ddb.h || true
|
DDB_ENABLED!= grep DDB opt_ddb.h || true
|
||||||
|
|
||||||
|
.if empty(DDB_ENABLED)
|
||||||
|
CFLAGS += -mno-apcs-frame
|
||||||
|
.endif
|
||||||
|
|
||||||
SYSTEM_LD_ = ${LD} -Bdynamic -T ldscript.$M.noheader \
|
SYSTEM_LD_ = ${LD} -Bdynamic -T ldscript.$M.noheader \
|
||||||
-warn-common -export-dynamic -dynamic-linker /red/herring -o \
|
-warn-common -export-dynamic -dynamic-linker /red/herring -o \
|
||||||
${FULLKERNEL}.noheader -X ${SYSTEM_OBJS} vers.o
|
${FULLKERNEL}.noheader -X ${SYSTEM_OBJS} vers.o
|
||||||
|
Loading…
Reference in New Issue
Block a user