Module Name: src
Committed By: tsutsui
Date: Thu Jan 10 13:10:26 UTC 2013
Modified Files:
src/sys/arch/luna68k/stand/boot: Makefile boot.ldscript
Log Message:
Link the target boot binary as a.out directly rather than using elf2aout(1).
Confirmed working on LUNA-I.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/Makefile
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/luna68k/stand/boot/boot.ldscript
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/luna68k/stand/boot/Makefile
diff -u src/sys/arch/luna68k/stand/boot/Makefile:1.2 src/sys/arch/luna68k/stand/boot/Makefile:1.3
--- src/sys/arch/luna68k/stand/boot/Makefile:1.2 Wed Jan 9 16:28:41 2013
+++ src/sys/arch/luna68k/stand/boot/Makefile Thu Jan 10 13:10:26 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/01/09 16:28:41 tsutsui Exp $
+# $NetBSD: Makefile,v 1.3 2013/01/10 13:10:26 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 8/15/93
NOMAN= # defined
@@ -73,11 +73,10 @@ vers.c: ${.CURDIR}/version
${.CURDIR}/version ${MACHINE} ${NEWVERSWHAT}
${PROG}: ${LDSCRIPT} ${OBJS} ${LIBS}
- ${LD} ${LINKFORMAT} -x -o ${PROG}.elf ${OBJS} ${LIBS}
- ${ELF2AOUT} ${PROG}.elf ${PROG}.aout
+ ${LD} ${LINKFORMAT} -x -o ${PROG}.aout ${OBJS} ${LIBS}
mv ${PROG}.aout ${PROG}
-CLEANFILES+= ${PROG}.map ${PROG}.elf ${PROG}.gz
+CLEANFILES+= ${PROG}.aout
cleandir distclean: .WAIT cleanlibdir
Index: src/sys/arch/luna68k/stand/boot/boot.ldscript
diff -u src/sys/arch/luna68k/stand/boot/boot.ldscript:1.1 src/sys/arch/luna68k/stand/boot/boot.ldscript:1.2
--- src/sys/arch/luna68k/stand/boot/boot.ldscript:1.1 Sat Jan 5 17:44:24 2013
+++ src/sys/arch/luna68k/stand/boot/boot.ldscript Thu Jan 10 13:10:26 2013
@@ -1,6 +1,6 @@
-/* $NetBSD: boot.ldscript,v 1.1 2013/01/05 17:44:24 tsutsui Exp $ */
+/* $NetBSD: boot.ldscript,v 1.2 2013/01/10 13:10:26 tsutsui Exp $ */
-OUTPUT_FORMAT("elf32-m68k")
+OUTPUT_FORMAT("a.out-m68k-netbsd")
OUTPUT_ARCH(m68k)
ENTRY(start)
SECTIONS
@@ -45,4 +45,6 @@ SECTIONS
_end = .;
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
PROVIDE (end = .);
+
+ /DISCARD/ : { *(.ident) *(.stab) *(.stabstr) *(.comment) }
}