diff options
author | cognet <cognet@FreeBSD.org> | 2005-10-17 18:31:37 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-10-17 18:31:37 +0000 |
commit | 655fee75e3245c0a086d0f572358f6c6df1cf56f (patch) | |
tree | 486719224a35ea424b6298db8b1445daab13189b /sys/conf/Makefile.arm | |
parent | 79ab22b18992c27ae0dcab33b792a21969759951 (diff) | |
download | FreeBSD-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.arm | 3 |
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 |