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/8bdb56d8cbb2
branches:  trunk
changeset: 814172:8bdb56d8cbb2
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 bbc71a7e41f1 -r 8bdb56d8cbb2 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