Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch be more efficient when doing the SYSTEM_LD_TAIL for...
details: https://anonhg.NetBSD.org/src/rev/5d02390966f4
branches: trunk
changeset: 474916:5d02390966f4
user: cgd <cgd%NetBSD.org@localhost>
date: Mon Jul 26 05:20:44 1999 +0000
description:
be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
copy them just to strip them, use strip -o.
diffstat:
sys/arch/alpha/conf/Makefile.alpha | 7 ++++---
sys/arch/amiga/conf/Makefile.amiga | 7 ++++---
sys/arch/arm32/conf/Makefile.arm32 | 7 ++++---
sys/arch/atari/conf/Makefile.atari | 7 ++++---
sys/arch/bebox/conf/Makefile.bebox | 7 ++++---
sys/arch/hp300/conf/Makefile.hp300 | 7 ++++---
sys/arch/i386/conf/Makefile.i386 | 7 ++++---
sys/arch/mac68k/conf/Makefile.mac68k | 7 ++++---
sys/arch/macppc/conf/Makefile.macppc | 7 ++++---
sys/arch/mvme68k/conf/Makefile.mvme68k | 7 ++++---
sys/arch/newsmips/conf/Makefile.newsmips | 7 ++++---
sys/arch/next68k/conf/Makefile.next68k | 7 ++++---
sys/arch/ofppc/conf/Makefile.ofppc | 7 ++++---
sys/arch/pc532/conf/Makefile.pc532 | 7 ++++---
sys/arch/pica/conf/Makefile.pica | 7 ++++---
sys/arch/pmax/conf/Makefile.pmax | 7 ++++---
sys/arch/sparc/conf/Makefile.sparc | 7 ++++---
sys/arch/sparc64/conf/Makefile.sparc64 | 7 ++++---
sys/arch/sun3/conf/Makefile.sun3 | 7 ++++---
sys/arch/vax/conf/Makefile.vax | 7 ++++---
sys/arch/x68k/conf/Makefile.x68k | 7 ++++---
21 files changed, 84 insertions(+), 63 deletions(-)
diffs (truncated from 441 to 300 lines):
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/alpha/conf/Makefile.alpha
--- a/sys/arch/alpha/conf/Makefile.alpha Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/alpha/conf/Makefile.alpha Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.alpha,v 1.52 1999/07/09 09:52:55 mrg Exp $
+# $NetBSD: Makefile.alpha,v 1.53 1999/07/26 05:20:44 cgd Exp $
# Makefile for NetBSD
#
@@ -103,8 +103,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/amiga/conf/Makefile.amiga
--- a/sys/arch/amiga/conf/Makefile.amiga Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/amiga/conf/Makefile.amiga Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.amiga,v 1.81 1999/07/09 09:52:55 mrg Exp $
+# $NetBSD: Makefile.amiga,v 1.82 1999/07/26 05:20:45 cgd Exp $
# Makefile for NetBSD
#
@@ -121,8 +121,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/arm32/conf/Makefile.arm32
--- a/sys/arch/arm32/conf/Makefile.arm32 Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/arm32/conf/Makefile.arm32 Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.arm32,v 1.46 1999/07/09 09:52:56 mrg Exp $
+# $NetBSD: Makefile.arm32,v 1.47 1999/07/26 05:20:45 cgd Exp $
# Makefile for NetBSD
#
@@ -114,8 +114,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
#LINKFLAGS+= -S
LINKFLAGS+= -x
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/atari/conf/Makefile.atari
--- a/sys/arch/atari/conf/Makefile.atari Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/atari/conf/Makefile.atari Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.atari,v 1.53 1999/07/09 09:52:56 mrg Exp $
+# $NetBSD: Makefile.atari,v 1.54 1999/07/26 05:20:45 cgd Exp $
# Makefile for NetBSD
#
@@ -121,8 +121,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/bebox/conf/Makefile.bebox
--- a/sys/arch/bebox/conf/Makefile.bebox Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/bebox/conf/Makefile.bebox Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bebox,v 1.13 1999/07/09 09:52:56 mrg Exp $
+# $NetBSD: Makefile.bebox,v 1.14 1999/07/26 05:20:46 cgd Exp $
# Makefile for NetBSD
#
@@ -106,8 +106,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/hp300/conf/Makefile.hp300
--- a/sys/arch/hp300/conf/Makefile.hp300 Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/hp300/conf/Makefile.hp300 Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.hp300,v 1.69 1999/07/09 09:52:57 mrg Exp $
+# $NetBSD: Makefile.hp300,v 1.70 1999/07/26 05:20:46 cgd Exp $
# Makefile for NetBSD
#
@@ -113,8 +113,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386 Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/i386/conf/Makefile.i386 Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.i386,v 1.98 1999/07/09 09:52:57 mrg Exp $
+# $NetBSD: Makefile.i386,v 1.99 1999/07/26 05:20:46 cgd Exp $
# Makefile for NetBSD
#
@@ -111,8 +111,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -X
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/mac68k/conf/Makefile.mac68k
--- a/sys/arch/mac68k/conf/Makefile.mac68k Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/mac68k/conf/Makefile.mac68k Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mac68k,v 1.69 1999/07/09 09:52:57 mrg Exp $
+# $NetBSD: Makefile.mac68k,v 1.70 1999/07/26 05:20:46 cgd Exp $
# Makefile for NetBSD
#
@@ -107,8 +107,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/macppc/conf/Makefile.macppc
--- a/sys/arch/macppc/conf/Makefile.macppc Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/macppc/conf/Makefile.macppc Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.macppc,v 1.7 1999/07/09 09:52:57 mrg Exp $
+# $NetBSD: Makefile.macppc,v 1.8 1999/07/26 05:20:46 cgd Exp $
#
# Makefile for NetBSD
#
@@ -111,8 +111,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/mvme68k/conf/Makefile.mvme68k
--- a/sys/arch/mvme68k/conf/Makefile.mvme68k Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/mvme68k/conf/Makefile.mvme68k Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mvme68k,v 1.40 1999/07/09 09:52:58 mrg Exp $
+# $NetBSD: Makefile.mvme68k,v 1.41 1999/07/26 05:20:47 cgd Exp $
# Makefile for NetBSD
#
@@ -114,8 +114,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/newsmips/conf/Makefile.newsmips
--- a/sys/arch/newsmips/conf/Makefile.newsmips Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/newsmips/conf/Makefile.newsmips Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.newsmips,v 1.18 1999/07/09 09:52:58 mrg Exp $
+# $NetBSD: Makefile.newsmips,v 1.19 1999/07/26 05:20:47 cgd Exp $
# Makefile for NetBSD
#
@@ -112,8 +112,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/next68k/conf/Makefile.next68k
--- a/sys/arch/next68k/conf/Makefile.next68k Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/next68k/conf/Makefile.next68k Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.next68k,v 1.8 1999/07/09 09:52:59 mrg Exp $
+# $NetBSD: Makefile.next68k,v 1.9 1999/07/26 05:20:47 cgd Exp $
# Makefile for NetBSD
#
@@ -119,8 +119,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/ofppc/conf/Makefile.ofppc
--- a/sys/arch/ofppc/conf/Makefile.ofppc Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/ofppc/conf/Makefile.ofppc Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.ofppc,v 1.19 1999/07/09 09:52:59 mrg Exp $
+# $NetBSD: Makefile.ofppc,v 1.20 1999/07/26 05:20:47 cgd Exp $
#
# Makefile for NetBSD
#
@@ -112,8 +112,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/pc532/conf/Makefile.pc532
--- a/sys/arch/pc532/conf/Makefile.pc532 Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/pc532/conf/Makefile.pc532 Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.pc532,v 1.55 1999/07/09 09:52:59 mrg Exp $
+# $NetBSD: Makefile.pc532,v 1.56 1999/07/26 05:20:47 cgd Exp $
# Makefile for NetBSD
#
@@ -110,8 +110,9 @@
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff -r 0ea058ebe95d -r 5d02390966f4 sys/arch/pica/conf/Makefile.pica
--- a/sys/arch/pica/conf/Makefile.pica Mon Jul 26 04:21:21 1999 +0000
+++ b/sys/arch/pica/conf/Makefile.pica Mon Jul 26 05:20:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.pica,v 1.26 1999/07/09 09:52:59 mrg Exp $
+# $NetBSD: Makefile.pica,v 1.27 1999/07/26 05:20:48 cgd Exp $
Home |
Main Index |
Thread Index |
Old Index