Set kernel text start address in port-specific Makefile, not ldscript.
This commit is contained in:
parent
57d82a8b27
commit
d2faa7a82b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern.ldscript,v 1.1 1997/05/23 22:21:06 jonathan Exp $ */
|
||||
/* $NetBSD: kern.ldscript,v 1.2 1997/06/23 02:40:28 jonathan Exp $ */
|
||||
|
||||
/* ldscript for NetBSD/mips kernels */
|
||||
OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips",
|
||||
@ -11,8 +11,8 @@ SEARCH_DIR(/lib);
|
||||
_DYNAMIC_LINK = 0;
|
||||
SECTIONS
|
||||
{
|
||||
/* Read-only sections, merged into text segment: */
|
||||
. = 0x80030000;
|
||||
/* Read-only sections, merged into text segment. Assumes the
|
||||
kernel Makefile sets the start address via -Ttext. */
|
||||
.text :
|
||||
{
|
||||
_ftext = . ;
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.pmax,v 1.48 1997/06/15 16:27:47 mhitch Exp $
|
||||
# $NetBSD: Makefile.pmax,v 1.49 1997/06/23 02:40:29 jonathan Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
@ -44,7 +44,7 @@ CWARNFLAGS= -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitia
|
||||
GP?= -G 0
|
||||
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-abicalls -mno-half-pic
|
||||
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
|
||||
LINKFLAGS= -T ${MIPS}/conf/kern.ldscript -e start ${GP}
|
||||
LINKFLAGS= -Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript -e start ${GP}
|
||||
STRIPFLAGS= -d
|
||||
|
||||
### find out what to use for libkern
|
||||
|
Loading…
Reference in New Issue
Block a user