summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.arm
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2005-10-17 18:31:37 +0000
committercognet <cognet@FreeBSD.org>2005-10-17 18:31:37 +0000
commit655fee75e3245c0a086d0f572358f6c6df1cf56f (patch)
tree486719224a35ea424b6298db8b1445daab13189b /sys/conf/Makefile.arm
parent79ab22b18992c27ae0dcab33b792a21969759951 (diff)
downloadFreeBSD-src-655fee75e3245c0a086d0f572358f6c6df1cf56f.zip
FreeBSD-src-655fee75e3245c0a086d0f572358f6c6df1cf56f.tar.gz
Strip the $a, $t and $d symbols if we're using DDB. There are useless and
confusing in a backtrace.
Diffstat (limited to 'sys/conf/Makefile.arm')
-rw-r--r--sys/conf/Makefile.arm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm
index 6d1984e..5ac30b2 100644
--- a/sys/conf/Makefile.arm
+++ b/sys/conf/Makefile.arm
@@ -41,6 +41,7 @@ CC += -mbig-endian
SYSTEM_LD += -EB
.endif
+
.if !defined(DEBUG)
CFLAGS += -mno-apcs-frame
.endif
@@ -49,6 +50,8 @@ DDB_ENABLED!= grep DDB opt_ddb.h || true
.if ${DDB_ENABLED} != ""
SYSTEM_LD_TAIL += ;echo "\#define KERNNAME \"${KERNEL_KO}\"" >opt_kernname.h ; \
+ ${OBJCOPY} --strip-symbol '$$d' --strip-symbol '$$a' \
+ --strip-symbol '$$t' ${KERNEL_KO} ;\
${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.arm \
$S/$M/$M/elf_trampoline.c $S/$M/$M/inckern.S -o ${KERNEL_KO}.tramp
.endif
OpenPOWER on IntegriCloud