From f33ffa4a6ccf288bcfcb9826131bf8b2beca281f Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Mon, 17 Oct 2005 18:31:37 +0000 Subject: [PATCH] Strip the $a, $t and $d symbols if we're using DDB. There are useless and confusing in a backtrace. --- sys/conf/Makefile.arm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 6d1984e3870..5ac30b2a108 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