partially revert previous commit stripping arm mapping symbols

it broke ddb when DEBUG wasn't set to -g.
This commit is contained in:
dbj 2005-11-10 09:42:42 +00:00
parent c6257ebac1
commit af56e26cc6
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.arm,v 1.26 2005/10/21 14:40:03 dbj Exp $
# $NetBSD: Makefile.arm,v 1.27 2005/11/10 09:42:42 dbj Exp $
# Makefile for NetBSD
#
@ -62,8 +62,15 @@ locore.o: ${ARM}/arm32/locore.S assym.h
LOADADDRESS?= 0xF0000000
LINKFLAGS_NORMAL= -X
# Strip ARM mapping symbols from the kernel image, as they interfere
# with ddb, but don't strip them in the .gdb
# with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified.
.if !defined(DEBUG) || empty(DEBUG:M-g*)
SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \
--strip-symbol='$$t' \
--strip-symbol='$$d' $@ ;\
${SIZE} $@; chmod 755 $@
.else
STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d'
.endif
##
## (6) port specific target dependencies