Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Apply ldscript fixes for binutils-2.39. See PR 57223.
details: https://anonhg.NetBSD.org/src/rev/3941f4e2a3d6
branches: trunk
changeset: 373468:3941f4e2a3d6
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Feb 11 22:42:20 2023 +0000
description:
Apply ldscript fixes for binutils-2.39. See PR 57223.
diffstat:
sys/arch/cats/conf/ldscript.elf | 26 +++++++-------------------
sys/arch/epoc32/conf/ldscript.epoc32 | 26 +++++++-------------------
sys/arch/zaurus/conf/ldscript.zaurus | 26 +++++++-------------------
3 files changed, 21 insertions(+), 57 deletions(-)
diffs (141 lines):
diff -r 846d8274d69f -r 3941f4e2a3d6 sys/arch/cats/conf/ldscript.elf
--- a/sys/arch/cats/conf/ldscript.elf Sat Feb 11 22:41:37 2023 +0000
+++ b/sys/arch/cats/conf/ldscript.elf Sat Feb 11 22:42:20 2023 +0000
@@ -1,16 +1,20 @@
-/* $NetBSD: ldscript.elf,v 1.6 2015/08/23 08:57:25 uebayasi Exp $ */
+/* $NetBSD: ldscript.elf,v 1.7 2023/02/11 22:42:20 mlelstv Exp $ */
ENTRY(KERNEL_BASE_phys)
SECTIONS
{
+ KERNEL_BASE_phys = 0xF0000000;
+ KERNEL_BASE_virt = 0xF0000000;
+
/* Kernel start: */
- .start :
+ .start (KERNEL_BASE_phys) :
{
*(.start)
}
/* Read-only sections, merged into text segment: */
- .text :
+ .text (KERNEL_BASE_virt + SIZEOF(.start)) :
+ AT (LOADADDR(.start) + SIZEOF(.start))
{
*(.text)
*(.text.*)
@@ -66,19 +70,3 @@
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
PROVIDE (end = .);
}
-SECTIONS
-{
- KERNEL_BASE_phys = 0xF0000000;
- KERNEL_BASE_virt = 0xF0000000;
-
- .start (KERNEL_BASE_phys) :
- {
- *(.start)
- } =0
-
- .text (KERNEL_BASE_virt + SIZEOF(.start)) :
- AT (LOADADDR(.start) + SIZEOF(.start))
- {
- *(.text)
- } =0
-}
diff -r 846d8274d69f -r 3941f4e2a3d6 sys/arch/epoc32/conf/ldscript.epoc32
--- a/sys/arch/epoc32/conf/ldscript.epoc32 Sat Feb 11 22:41:37 2023 +0000
+++ b/sys/arch/epoc32/conf/ldscript.epoc32 Sat Feb 11 22:42:20 2023 +0000
@@ -1,16 +1,20 @@
-/* $NetBSD: ldscript.epoc32,v 1.7 2015/08/23 08:57:25 uebayasi Exp $ */
+/* $NetBSD: ldscript.epoc32,v 1.8 2023/02/11 22:42:20 mlelstv Exp $ */
ENTRY(KERNEL_BASE_phys)
SECTIONS
{
+ KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
+ KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
+
/* Kernel start: */
- .start :
+ .start (KERNEL_BASE_phys) :
{
*(.start)
}
/* Read-only sections, merged into text segment: */
- .text :
+ .text (KERNEL_BASE_virt + SIZEOF(.start)) :
+ AT (LOADADDR(.start) + SIZEOF(.start))
{
*(.text)
*(.text.*)
@@ -70,19 +74,3 @@
KEEP(*(.note.netbsd.ident));
}
}
-SECTIONS
-{
- KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
- KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
-
- .start (KERNEL_BASE_phys) :
- {
- *(.start)
- } =0
-
- .text (KERNEL_BASE_virt + SIZEOF(.start)) :
- AT (LOADADDR(.start) + SIZEOF(.start))
- {
- *(.text)
- } =0
-}
diff -r 846d8274d69f -r 3941f4e2a3d6 sys/arch/zaurus/conf/ldscript.zaurus
--- a/sys/arch/zaurus/conf/ldscript.zaurus Sat Feb 11 22:41:37 2023 +0000
+++ b/sys/arch/zaurus/conf/ldscript.zaurus Sat Feb 11 22:42:20 2023 +0000
@@ -1,16 +1,20 @@
-/* $NetBSD: ldscript.zaurus,v 1.12 2020/01/03 10:01:07 martin Exp $ */
+/* $NetBSD: ldscript.zaurus,v 1.13 2023/02/11 22:42:20 mlelstv Exp $ */
ENTRY(KERNEL_BASE_phys)
SECTIONS
{
+ KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
+ KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
+
/* Kernel start: */
- .start :
+ .start (KERNEL_BASE_phys) :
{
*(.start)
}
/* Read-only sections, merged into text segment: */
- .text :
+ .text (KERNEL_BASE_virt + SIZEOF(.start)) :
+ AT (LOADADDR(.start) + SIZEOF(.start))
{
*(.text)
*(.text.*)
@@ -75,19 +79,3 @@
*(.SUNW_ctf)
}
}
-SECTIONS
-{
- KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
- KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
-
- .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