use elf2aout for boot.
This commit is contained in:
parent
4bd1a6b057
commit
12c2d25336
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.28 2017/04/08 19:53:23 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.29 2018/12/31 19:25:46 christos Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -21,8 +21,6 @@ BINDIR= /usr/mdec
|
|||
BINMODE= 444
|
||||
STRIPFLAG=
|
||||
|
||||
BFDNAME= a.out-m68k-netbsd
|
||||
|
||||
SRCS= srt0.S boot.c conf.c switch.c exec_image.S
|
||||
SRCS+= if_ne.c ne.c dp8390.c
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
@ -56,8 +54,9 @@ realall: ${PROG}
|
|||
${PROG}: ${OBJS} ${LDLIBS}
|
||||
${_MKTARGET_LINK}
|
||||
${LD} ${LINKFLAGS} -o ${PROG}.sym ${OBJS} ${LDLIBS}
|
||||
${STRIP} -F ${BFDNAME} -o ${PROG} ${PROG}.sym
|
||||
${STRIP} ${PROG}.sym -o ${PROG}.strip
|
||||
${ELF2AOUT} ${PROG}.strip ${PROG}
|
||||
|
||||
CLEANFILES+= ${PROG}.sym
|
||||
CLEANFILES+= ${PROG}.sym ${PROG}.strip
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* /boot must be a.out, OMAGIC starting from 0x6000. */
|
||||
/* ... but new binutils don't support a.out anymore...
|
||||
OUTPUT_FORMAT("a.out-m68k-netbsd", "a.out-m68k-netbsd",
|
||||
"a.out-m68k-netbsd")
|
||||
"a.out-m68k-netbsd")
|
||||
*/
|
||||
OUTPUT_ARCH(m68k)
|
||||
ENTRY(start)
|
||||
SEARCH_DIR(/usr/lib);
|
||||
|
|
Loading…
Reference in New Issue