Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/conf move etext after rodata, like kern32.l...
details: https://anonhg.NetBSD.org/src/rev/998df7cab7c0
branches: trunk
changeset: 504519:998df7cab7c0
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Mar 04 13:41:00 2001 +0000
description:
move etext after rodata, like kern32.ldscript and sparc's kern.ldscript.
diffstat:
sys/arch/sparc64/conf/kern.ldscript | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 6c9a7bd6b9e5 -r 998df7cab7c0 sys/arch/sparc64/conf/kern.ldscript
--- a/sys/arch/sparc64/conf/kern.ldscript Sun Mar 04 13:36:19 2001 +0000
+++ b/sys/arch/sparc64/conf/kern.ldscript Sun Mar 04 13:41:00 2001 +0000
@@ -1,3 +1,9 @@
+/* $NetBSD: kern.ldscript,v 1.2 2001/03/04 13:41:00 mrg Exp $ */
+
+/*
+ * Kernel linker script for NetBSD/sparc64. This script is based on
+ * elf64_sparc.xn, but puts _etext after all of the read-only sections.
+ */
OUTPUT_FORMAT("elf64-sparc", "elf64-sparc",
"elf64-sparc")
OUTPUT_ARCH(sparc:v9)
@@ -51,14 +57,15 @@
*(.gnu.warning)
*(.gnu.linkonce.t*)
} =0x01000000
- _etext = .;
- PROVIDE (etext = .);
.fini : { *(.fini) } =0x01000000
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 : { *(.rodata1) }
+ _etext = .;
+ PROVIDE (etext = .);
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x100000) + (. & (0x100000 - 1));
+ kernel_data_start = .;
.data :
{
*(.data)
Home |
Main Index |
Thread Index |
Old Index