Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mvmeppc/stand Explicitly link srt0.o (Standalone Ru...
details: https://anonhg.NetBSD.org/src/rev/e5752fb3c812
branches: trunk
changeset: 790143:e5752fb3c812
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 21 08:40:37 2013 +0000
description:
Explicitly link srt0.o (Standalone RunTime startup code) first.
Taken from the similar fix of mvme68k:
http://mail-index.netbsd.org/source-changes/2013/09/21/msg047819.html
> MVME PROM requires raw binaries (by objcopy -O binary) so we have to
> make sure the entry point is located at the first address of the binaries.
The original changes to switch to using MI libsa is:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016563.html
Should be pulled up to netbsd-6 branches.
(though untested since there seems no users of mvmeppc)
diffstat:
sys/arch/mvmeppc/stand/Makefile.booters | 4 +++-
sys/arch/mvmeppc/stand/libsa/Makefile | 6 ++++--
sys/arch/mvmeppc/stand/libsa/Makefile.inc | 4 ++--
3 files changed, 9 insertions(+), 5 deletions(-)
diffs (56 lines):
diff -r 9370849a683a -r e5752fb3c812 sys/arch/mvmeppc/stand/Makefile.booters
--- a/sys/arch/mvmeppc/stand/Makefile.booters Sat Sep 21 08:32:39 2013 +0000
+++ b/sys/arch/mvmeppc/stand/Makefile.booters Sat Sep 21 08:40:37 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.12 2011/01/22 19:19:20 joerg Exp $
+# $NetBSD: Makefile.booters,v 1.13 2013/09/21 08:40:37 tsutsui Exp $
S?= ${.CURDIR}/../../../..
MDEC_DIR?= /usr/mdec
@@ -56,6 +56,8 @@
LIBSA= ${LIBSA_DIR}/lib/sa/libsa.a
LIBKERN= ${LIBSA_DIR}/lib/kern/libkern.a
+SRTOBJ?= ${LIBSA_DIR}/srt0.o
+
#WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid
#WRTVID_DIR!= cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR}
#WRTVID=${WRTVID_DIR}/wrtvid
diff -r 9370849a683a -r e5752fb3c812 sys/arch/mvmeppc/stand/libsa/Makefile
--- a/sys/arch/mvmeppc/stand/libsa/Makefile Sat Sep 21 08:32:39 2013 +0000
+++ b/sys/arch/mvmeppc/stand/libsa/Makefile Sat Sep 21 08:40:37 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2011/01/02 09:40:52 tsutsui Exp $
+# $NetBSD: Makefile,v 1.11 2013/09/21 08:40:37 tsutsui Exp $
S!= cd ${.CURDIR}/../../../..; pwd
@@ -32,7 +32,9 @@
LIBS= ${LIBSA} ${LIBKERN}
-all realall: ${LIBS}
+CLEANFILES+= srt0.o
+
+all realall: ${LIBS} srt0.o
cleandir distclean: .WAIT cleanlibdir
diff -r 9370849a683a -r e5752fb3c812 sys/arch/mvmeppc/stand/libsa/Makefile.inc
--- a/sys/arch/mvmeppc/stand/libsa/Makefile.inc Sat Sep 21 08:32:39 2013 +0000
+++ b/sys/arch/mvmeppc/stand/libsa/Makefile.inc Sat Sep 21 08:40:37 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2011/01/02 09:40:52 tsutsui Exp $
+# $NetBSD: Makefile.inc,v 1.2 2013/09/21 08:40:37 tsutsui Exp $
S!= cd ${SA_EXTRADIR}/../../../..; pwd
@@ -7,7 +7,7 @@
SRC_sa= dev_net.c
-SRC_here= srt0.S bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c
+SRC_here= bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c
SRC_here+= if_bug.c clock.c
SRCS+= ${SRC_sa} ${SRC_here}
Home |
Main Index |
Thread Index |
Old Index