summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 19:58:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 19:58:52 +0000
commit6409b7640d63ebb55d873d5058be79c89d2d43e1 (patch)
tree94fb58aeab10233d990519b30ea7996f8b24e28f /sys/arch
parent49b5adfc721f2352da36b1712b074f23673649ba (diff)
use the same idiom for stripping gdb kernels. This relies on strip -o
support for the non-binutils architectures (and that diff is coming..)
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/armish/conf/Makefile.armish7
-rw-r--r--sys/arch/aviion/conf/Makefile.aviion7
-rw-r--r--sys/arch/hp300/conf/Makefile.hp3007
-rw-r--r--sys/arch/luna88k/conf/Makefile.luna88k7
-rw-r--r--sys/arch/mac68k/conf/Makefile.mac68k7
-rw-r--r--sys/arch/mvme68k/conf/Makefile.mvme68k7
-rw-r--r--sys/arch/mvme88k/conf/Makefile.mvme88k7
-rw-r--r--sys/arch/vax/conf/Makefile.vax4
8 files changed, 30 insertions, 23 deletions
diff --git a/sys/arch/armish/conf/Makefile.armish b/sys/arch/armish/conf/Makefile.armish
index abca893018e..5ee574bcb76 100644
--- a/sys/arch/armish/conf/Makefile.armish
+++ b/sys/arch/armish/conf/Makefile.armish
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.armish,v 1.28 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.armish,v 1.29 2010/05/24 19:58:50 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -91,8 +91,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff --git a/sys/arch/aviion/conf/Makefile.aviion b/sys/arch/aviion/conf/Makefile.aviion
index 04d0c1fff15..534307c0950 100644
--- a/sys/arch/aviion/conf/Makefile.aviion
+++ b/sys/arch/aviion/conf/Makefile.aviion
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.aviion,v 1.22 2010/05/24 14:59:15 deraadt Exp $
+# $OpenBSD: Makefile.aviion,v 1.23 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -87,8 +87,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300
index 68d81787d24..8686517bc82 100644
--- a/sys/arch/hp300/conf/Makefile.hp300
+++ b/sys/arch/hp300/conf/Makefile.hp300
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hp300,v 1.63 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.hp300,v 1.64 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -118,8 +118,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k
index 77f7e1374d4..3c96e4d3421 100644
--- a/sys/arch/luna88k/conf/Makefile.luna88k
+++ b/sys/arch/luna88k/conf/Makefile.luna88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.luna88k,v 1.29 2010/05/24 14:59:16 deraadt Exp $
+# $OpenBSD: Makefile.luna88k,v 1.30 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -85,8 +85,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k
index fc34835a62e..28fc8c8a64c 100644
--- a/sys/arch/mac68k/conf/Makefile.mac68k
+++ b/sys/arch/mac68k/conf/Makefile.mac68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mac68k,v 1.60 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.mac68k,v 1.61 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -83,8 +83,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} $@; ${STRIP} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k
index 6a611244c6b..e78145d2bdb 100644
--- a/sys/arch/mvme68k/conf/Makefile.mvme68k
+++ b/sys/arch/mvme68k/conf/Makefile.mvme68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme68k,v 1.51 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.mvme68k,v 1.52 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -84,8 +84,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S
.endif
diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k
index f83839bb8fe..561d7bc954f 100644
--- a/sys/arch/mvme88k/conf/Makefile.mvme88k
+++ b/sys/arch/mvme88k/conf/Makefile.mvme88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme88k,v 1.59 2010/05/24 14:59:16 deraadt Exp $
+# $OpenBSD: Makefile.mvme88k,v 1.60 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -87,8 +87,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -x
.endif
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index 1d18570ebca..b4b524d9528 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.vax,v 1.49 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.vax,v 1.50 2010/05/24 19:58:51 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -81,7 +81,7 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else