Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/stand/gzboot Pad .sdata section to a 4-byte ...
details: https://anonhg.NetBSD.org/src/rev/fc1e8d35b619
branches: trunk
changeset: 572209:fc1e8d35b619
user: joff <joff%NetBSD.org@localhost>
date: Fri Dec 24 16:17:27 2004 +0000
description:
Pad .sdata section to a 4-byte boundary so that the .image section
is always aligned. This makes md_root_loadaddr always 4 byte aligned.
Without this, may get an un-aligned access trap before we even print
anything on the console which was a pain in the neck to debug since so
early in the bootstrap the CPU usually just halts on exceptions.
diffstat:
sys/arch/evbarm/stand/gzboot/ADI_BRH_flash_0x00140000/ldscript | 3 ++-
sys/arch/evbarm/stand/gzboot/IQ80310_flash_0x00080000/ldscript | 3 ++-
sys/arch/evbarm/stand/gzboot/IQ80321_flash_0xf0080000/ldscript | 3 ++-
sys/arch/evbarm/stand/gzboot/SMDK2410_flash_0x00000000/ldscript | 3 ++-
sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00000000/ldscript | 3 ++-
sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00100000/ldscript | 3 ++-
6 files changed, 12 insertions(+), 6 deletions(-)
diffs (102 lines):
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/ADI_BRH_flash_0x00140000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/ADI_BRH_flash_0x00140000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/ADI_BRH_flash_0x00140000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.2 2003/05/26 15:07:53 thorpej Exp $ */
+/* $NetBSD: ldscript,v 1.3 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_ARCH(arm)
ENTRY(FLASH)
@@ -41,6 +41,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/IQ80310_flash_0x00080000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/IQ80310_flash_0x00080000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/IQ80310_flash_0x00080000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.1 2003/04/29 05:04:37 thorpej Exp $ */
+/* $NetBSD: ldscript,v 1.2 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -43,6 +43,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/IQ80321_flash_0xf0080000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/IQ80321_flash_0xf0080000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/IQ80321_flash_0xf0080000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.4 2002/04/25 01:48:21 thorpej Exp $ */
+/* $NetBSD: ldscript,v 1.5 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -43,6 +43,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/SMDK2410_flash_0x00000000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/SMDK2410_flash_0x00000000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/SMDK2410_flash_0x00000000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.1 2003/09/03 03:18:32 mycroft Exp $ */
+/* $NetBSD: ldscript,v 1.2 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -49,6 +49,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00000000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00000000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00000000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.1 2003/07/30 18:54:19 bsh Exp $ */
+/* $NetBSD: ldscript,v 1.2 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -49,6 +49,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
diff -r 383b20ed0f7e -r fc1e8d35b619 sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00100000/ldscript
--- a/sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00100000/ldscript Fri Dec 24 14:55:50 2004 +0000
+++ b/sys/arch/evbarm/stand/gzboot/SMDK2800_flash_0x00100000/ldscript Fri Dec 24 16:17:27 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldscript,v 1.1 2003/07/30 18:54:18 bsh Exp $ */
+/* $NetBSD: ldscript,v 1.2 2004/12/24 16:17:27 joff Exp $ */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
@@ -43,6 +43,7 @@
{
*(.sdata)
*(.sdata.*)
+ . = ALIGN(32 / 8);
} > sdram
_edata = .;
PROVIDE (edata = .);
Home |
Main Index |
Thread Index |
Old Index