Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Also share BE ldscripts.
details: https://anonhg.NetBSD.org/src/rev/9c7951bc376c
branches: trunk
changeset: 486392:9c7951bc376c
user: soren <soren%NetBSD.org@localhost>
date: Sun May 21 02:50:10 2000 +0000
description:
Also share BE ldscripts.
diffstat:
sys/arch/arc/conf/Makefile.arc | 5 +-
sys/arch/cobalt/conf/Makefile.cobalt | 5 +-
sys/arch/hpcmips/conf/Makefile.hpcmips | 5 +-
sys/arch/mips/conf/kern.ldscript | 66 --------------------------------
sys/arch/mips/conf/kern.ldscript.be | 66 ++++++++++++++++++++++++++++++++
sys/arch/mips/conf/kern.ldscript.le | 66 ++++++++++++++++++++++++++++++++
sys/arch/mips/conf/stand.ldscript | 43 --------------------
sys/arch/mips/conf/stand.ldscript.be | 43 ++++++++++++++++++++
sys/arch/mips/conf/stand.ldscript.le | 43 ++++++++++++++++++++
sys/arch/newsmips/conf/Makefile.newsmips | 5 +-
sys/arch/pmax/conf/Makefile.pmax | 5 +-
sys/arch/pmax/stand/Makefile.booters | 4 +-
12 files changed, 235 insertions(+), 121 deletions(-)
diffs (truncated from 464 to 300 lines):
diff -r df760de75315 -r 9c7951bc376c sys/arch/arc/conf/Makefile.arc
--- a/sys/arch/arc/conf/Makefile.arc Sun May 21 00:48:45 2000 +0000
+++ b/sys/arch/arc/conf/Makefile.arc Sun May 21 02:50:10 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.arc,v 1.37 2000/05/09 00:56:22 hubertf Exp $
+# $NetBSD: Makefile.arc,v 1.38 2000/05/21 02:50:10 soren Exp $
# Makefile for NetBSD
#
@@ -64,7 +64,8 @@
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
-mips2 -mcpu=r4000 -mno-abicalls -mno-half-pic
AFLAGS= -x assembler-with-cpp -traditional-cpp -mips2 -D_LOCORE
-LINKFLAGS= -T${MIPS}/conf/kern.ldscript -Ttext ${TEXTADDR} -e start ${GP}
+LINKFLAGS= -T${MIPS}/conf/kern.ldscript.le -Ttext ${TEXTADDR} \
+ -e start ${GP}
STRIPFLAGS= -g -X -x
%INCLUDES
diff -r df760de75315 -r 9c7951bc376c sys/arch/cobalt/conf/Makefile.cobalt
--- a/sys/arch/cobalt/conf/Makefile.cobalt Sun May 21 00:48:45 2000 +0000
+++ b/sys/arch/cobalt/conf/Makefile.cobalt Sun May 21 02:50:10 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.cobalt,v 1.4 2000/05/09 00:56:23 hubertf Exp $
+# $NetBSD: Makefile.cobalt,v 1.5 2000/05/21 02:50:11 soren Exp $
# Makefile for NetBSD
#
@@ -61,7 +61,8 @@
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
-mno-abicalls -mno-half-pic
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
-LINKFLAGS= -T${MIPS}/conf/kern.ldscript -Ttext ${TEXTADDR} -e start ${GP}
+LINKFLAGS= -T${MIPS}/conf/kern.ldscript.le -Ttext ${TEXTADDR} \
+ -e start ${GP}
STRIPFLAGS= -g -X -x
%INCLUDES
diff -r df760de75315 -r 9c7951bc376c sys/arch/hpcmips/conf/Makefile.hpcmips
--- a/sys/arch/hpcmips/conf/Makefile.hpcmips Sun May 21 00:48:45 2000 +0000
+++ b/sys/arch/hpcmips/conf/Makefile.hpcmips Sun May 21 02:50:10 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.hpcmips,v 1.17 2000/05/09 00:56:24 hubertf Exp $
+# $NetBSD: Makefile.hpcmips,v 1.18 2000/05/21 02:50:11 soren Exp $
# Makefile for NetBSD
#
@@ -63,7 +63,8 @@
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
-mno-abicalls -mno-half-pic
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
-LINKFLAGS= -Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript -e start ${GP}
+LINKFLAGS= -Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript.le \
+ -e start ${GP}
STRIPFLAGS= -g -X -x
%INCLUDES
diff -r df760de75315 -r 9c7951bc376c sys/arch/mips/conf/kern.ldscript
--- a/sys/arch/mips/conf/kern.ldscript Sun May 21 00:48:45 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/* $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",
- "elf32-littlemips")
-OUTPUT_ARCH(mips)
-ENTRY(_start)
-SEARCH_DIR(/lib);
-/* Do we need any of these?
- __DYNAMIC = 0; */
-_DYNAMIC_LINK = 0;
-SECTIONS
-{
- /* Read-only sections, merged into text segment. Assumes the
- kernel Makefile sets the start address via -Ttext. */
- .text :
- {
- _ftext = . ;
- *(.text)
- *(.gnu.warning)
- } =0
- _etext = .;
- PROVIDE (etext = .);
- .rodata : { *(.rodata) }
- .reginfo : { *(.reginfo) }
- . = . + 0x1000;
- .data :
- {
- _fdata = . ;
- *(.data)
- CONSTRUCTORS
- }
- _gp = ALIGN(16) + 0x7ff0;
- .lit8 : { *(.lit8) }
- .lit4 : { *(.lit4) }
- .sdata : { *(.sdata) }
- _edata = .;
- PROVIDE (edata = .);
- __bss_start = .;
- _fbss = .;
- .sbss : { *(.sbss) *(.scommon) }
- .bss :
- {
- *(.bss)
- *(COMMON)
- }
- _end = . ;
- PROVIDE (end = .);
- /* These are needed for ELF backends which have not yet been
- converted to the new style linker. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- /* DWARF debug sections.
- Symbols in the .debug DWARF section are relative to the beginning of the
- section so we begin .debug at 0. It's not clear yet what needs to happen
- for the others. */
- .debug 0 : { *(.debug) }
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
- .line 0 : { *(.line) }
- /* These must appear regardless of . */
- .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
- .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
-}
diff -r df760de75315 -r 9c7951bc376c sys/arch/mips/conf/kern.ldscript.be
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/mips/conf/kern.ldscript.be Sun May 21 02:50:10 2000 +0000
@@ -0,0 +1,66 @@
+/* $NetBSD: kern.ldscript.be,v 1.1 2000/05/21 02:50:13 soren Exp $ */
+
+/* ldscript for NetBSD/mipseb kernels */
+OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips",
+ "elf32-littlemips")
+OUTPUT_ARCH(mips)
+ENTRY(_start)
+SEARCH_DIR(/lib);
+/* Do we need any of these?
+ __DYNAMIC = 0; */
+_DYNAMIC_LINK = 0;
+SECTIONS
+{
+ /* Read-only sections, merged into text segment. Assumes the
+ kernel Makefile sets the start address via -Ttext. */
+ .text :
+ {
+ _ftext = . ;
+ *(.text)
+ *(.gnu.warning)
+ } =0
+ _etext = .;
+ PROVIDE (etext = .);
+ .rodata : { *(.rodata) }
+ .reginfo : { *(.reginfo) }
+ . = . + 0x1000;
+ .data :
+ {
+ _fdata = . ;
+ *(.data)
+ CONSTRUCTORS
+ }
+ _gp = ALIGN(16) + 0x7ff0;
+ .lit8 : { *(.lit8) }
+ .lit4 : { *(.lit4) }
+ .sdata : { *(.sdata) }
+ _edata = .;
+ PROVIDE (edata = .);
+ __bss_start = .;
+ _fbss = .;
+ .sbss : { *(.sbss) *(.scommon) }
+ .bss :
+ {
+ *(.bss)
+ *(COMMON)
+ }
+ _end = . ;
+ PROVIDE (end = .);
+ /* These are needed for ELF backends which have not yet been
+ converted to the new style linker. */
+ .stab 0 : { *(.stab) }
+ .stabstr 0 : { *(.stabstr) }
+ /* DWARF debug sections.
+ Symbols in the .debug DWARF section are relative to the beginning of the
+ section so we begin .debug at 0. It's not clear yet what needs to happen
+ for the others. */
+ .debug 0 : { *(.debug) }
+ .debug_srcinfo 0 : { *(.debug_srcinfo) }
+ .debug_aranges 0 : { *(.debug_aranges) }
+ .debug_pubnames 0 : { *(.debug_pubnames) }
+ .debug_sfnames 0 : { *(.debug_sfnames) }
+ .line 0 : { *(.line) }
+ /* These must appear regardless of . */
+ .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
+ .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+}
diff -r df760de75315 -r 9c7951bc376c sys/arch/mips/conf/kern.ldscript.le
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/mips/conf/kern.ldscript.le Sun May 21 02:50:10 2000 +0000
@@ -0,0 +1,66 @@
+/* $NetBSD: kern.ldscript.le,v 1.1 2000/05/21 02:50:13 soren Exp $ */
+
+/* ldscript for NetBSD/mipsel kernels */
+OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips",
+ "elf32-littlemips")
+OUTPUT_ARCH(mips)
+ENTRY(_start)
+SEARCH_DIR(/lib);
+/* Do we need any of these?
+ __DYNAMIC = 0; */
+_DYNAMIC_LINK = 0;
+SECTIONS
+{
+ /* Read-only sections, merged into text segment. Assumes the
+ kernel Makefile sets the start address via -Ttext. */
+ .text :
+ {
+ _ftext = . ;
+ *(.text)
+ *(.gnu.warning)
+ } =0
+ _etext = .;
+ PROVIDE (etext = .);
+ .rodata : { *(.rodata) }
+ .reginfo : { *(.reginfo) }
+ . = . + 0x1000;
+ .data :
+ {
+ _fdata = . ;
+ *(.data)
+ CONSTRUCTORS
+ }
+ _gp = ALIGN(16) + 0x7ff0;
+ .lit8 : { *(.lit8) }
+ .lit4 : { *(.lit4) }
+ .sdata : { *(.sdata) }
+ _edata = .;
+ PROVIDE (edata = .);
+ __bss_start = .;
+ _fbss = .;
+ .sbss : { *(.sbss) *(.scommon) }
+ .bss :
+ {
+ *(.bss)
+ *(COMMON)
+ }
+ _end = . ;
+ PROVIDE (end = .);
+ /* These are needed for ELF backends which have not yet been
+ converted to the new style linker. */
+ .stab 0 : { *(.stab) }
+ .stabstr 0 : { *(.stabstr) }
+ /* DWARF debug sections.
+ Symbols in the .debug DWARF section are relative to the beginning of the
+ section so we begin .debug at 0. It's not clear yet what needs to happen
+ for the others. */
+ .debug 0 : { *(.debug) }
+ .debug_srcinfo 0 : { *(.debug_srcinfo) }
+ .debug_aranges 0 : { *(.debug_aranges) }
+ .debug_pubnames 0 : { *(.debug_pubnames) }
+ .debug_sfnames 0 : { *(.debug_sfnames) }
+ .line 0 : { *(.line) }
+ /* These must appear regardless of . */
+ .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
+ .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+}
diff -r df760de75315 -r 9c7951bc376c sys/arch/mips/conf/stand.ldscript
--- a/sys/arch/mips/conf/stand.ldscript Sun May 21 00:48:45 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/* $NetBSD: stand.ldscript,v 1.1 1997/10/05 22:17:56 jonathan Exp $ */
-
-/* ldscript for NetBSD/mips kernels */
-OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips",
- "elf32-littlemips")
-OUTPUT_ARCH(mips)
-ENTRY(_start)
-SECTIONS
-{
- /* Read-only sections, merged into text segment. Assumes the
- kernel Makefile sets the start address via -Ttext. */
- .text :
- {
- _ftext = . ;
- *(.text)
- *(.gnu.warning)
- } =0
- _etext = .;
- PROVIDE (etext = .);
- .rodata : { *(.rodata) }
- .data :
- {
- _fdata = . ;
- *(.data)
- CONSTRUCTORS
- }
- _gp = ALIGN(16);
- .lit8 : { *(.lit8) }
- .lit4 : { *(.lit4) }
Home |
Main Index |
Thread Index |
Old Index