Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/boot Strip debug symbols from boot code



details:   https://anonhg.NetBSD.org/src/rev/0d37b7f2328c
branches:  trunk
changeset: 344030:0d37b7f2328c
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Mar 10 20:23:35 2016 +0000

description:
Strip debug symbols from boot code

diffstat:

 sys/arch/sparc/stand/boot/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 21300a5eb8cc -r 0d37b7f2328c sys/arch/sparc/stand/boot/Makefile
--- a/sys/arch/sparc/stand/boot/Makefile        Thu Mar 10 20:22:52 2016 +0000
+++ b/sys/arch/sparc/stand/boot/Makefile        Thu Mar 10 20:23:35 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2011/08/28 08:03:49 mrg Exp $
+#      $NetBSD: Makefile,v 1.39 2016/03/10 20:23:35 martin Exp $
 
 STRIPFLAG=
 PROGSOURCE=    boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \
@@ -38,7 +38,7 @@
 
 .for RELOC in ${RELOCS}
 boot.${RELOC}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${LD} -o ${.TARGET}.tmp ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \
+       ${LD} -S -o ${.TARGET}.tmp ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \
            ${LIBSA} ${LIBZ} ${LIBKERN}
        ${SIZE} ${.TARGET}.tmp
        ${OBJCOPY} -O binary ${.TARGET}.tmp ${.TARGET}
@@ -55,7 +55,7 @@
        (printf ${SUN_MAGIC_HEADER}; cat ${.ALLSRC} ) > ${.TARGET}
 
 bootjs.net: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${LD} -o ${.TARGET} ${LINKFLAGS} -Ttext 300000 ${OBJS} \
+       ${LD} -S -o ${.TARGET} ${LINKFLAGS} -Ttext 300000 ${OBJS} \
            ${LIBSA} ${LIBZ} ${LIBKERN}
        ${SIZE} ${.TARGET}
 CLEANFILES+=   bootjs.net.map



Home | Main Index | Thread Index | Old Index