Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/netwinder/conf Simplify this by deciding load addre...
details: https://anonhg.NetBSD.org/src/rev/e84c22893add
branches: trunk
changeset: 340051:e84c22893add
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Fri Aug 21 04:13:23 2015 +0000
description:
Simplify this by deciding load address at one place.
diffstat:
sys/arch/netwinder/conf/kern.ldscript | 32 +++++++++++++++++++++-----------
1 files changed, 21 insertions(+), 11 deletions(-)
diffs (74 lines):
diff -r 4ad81923ca73 -r e84c22893add sys/arch/netwinder/conf/kern.ldscript
--- a/sys/arch/netwinder/conf/kern.ldscript Fri Aug 21 04:00:48 2015 +0000
+++ b/sys/arch/netwinder/conf/kern.ldscript Fri Aug 21 04:13:23 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.6 2015/08/20 07:00:49 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.7 2015/08/21 04:13:23 uebayasi Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -6,25 +6,21 @@
ENTRY(KERNEL_BASE_phys)
SECTIONS
{
- KERNEL_BASE_phys = 0x0000c000;
- KERNEL_BASE_virt = 0xf000c000;
-
/* Kernel start: */
- .start (KERNEL_BASE_phys) :
+ .start :
{
*(.start)
- } =0
+ }
/* Read-only sections, merged into text segment: */
- .text (KERNEL_BASE_virt + SIZEOF(.start)) :
- AT (LOADADDR(.start) + SIZEOF(.start))
+ .text :
{
*(.text)
*(.text.*)
*(.stub)
*(.glue_7t) *(.glue_7)
*(.rodata) *(.rodata.*)
- } =0
+ }
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
PROVIDE (__exidx_start = .);
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
@@ -36,14 +32,12 @@
boundary. */
. = ALIGN(0x8000);
.data :
- AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
{
__data_start = . ;
*(.data)
*(.data.*)
}
.sdata :
- AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data)))
{
*(.sdata)
*(.sdata.*)
@@ -79,3 +73,19 @@
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
PROVIDE (end = .);
}
+SECTIONS
+{
+ KERNEL_BASE_phys = 0x0000c000;
+ KERNEL_BASE_virt = 0xf000c000;
+
+ .start (KERNEL_BASE_phys) :
+ {
+ *(.start)
+ } =0
+
+ .text (KERNEL_BASE_virt + SIZEOF(.start)) :
+ AT (LOADADDR(.start) + SIZEOF(.start))
+ {
+ *(.text)
+ } =0
+}
Home |
Main Index |
Thread Index |
Old Index