This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
i386: add .2ram section to linker script
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 21 Apr 2005 15:57:46 +0100
- Subject: i386: add .2ram section to linker script
Hi,
This patch add a .2ram section to the i386 linker script (like most
other architectures). This section is required for the flash drivers.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
Index: packages/hal/i386/arch/current/ChangeLog
===================================================================
--- packages/hal/i386/arch/current/ChangeLog.orig 2005-04-21 15:47:43.000000000 +0100
+++ packages/hal/i386/arch/current/ChangeLog 2005-04-21 15:51:07.000000000 +0100
@@ -1,5 +1,9 @@
2005-04-21 David Vrabel <dvrabel@arcom.com>
+ * src/i386.ld: Add .2ram section.
+
+2005-04-21 David Vrabel <dvrabel@arcom.com>
+
* include/hal_arch.h: Allow platforms to provide their own
HAL_MEM_REAL_REGION_TOP macro. Useful for platforms without a
BIOS.
Index: packages/hal/i386/arch/current/src/i386.ld
===================================================================
--- packages/hal/i386/arch/current/src/i386.ld.orig 2005-04-21 15:12:23.000000000 +0100
+++ packages/hal/i386/arch/current/src/i386.ld 2005-04-21 15:49:22.000000000 +0100
@@ -132,7 +132,8 @@
/* We want the small data sections together, so single-instruction */ \
/* offsets can access them all, and initialized data all before */ \
/* uninitialized, so we can shorten the on-disk segment size. */ \
- _SDATA_START_ = ABSOLUTE(.); *(.sdata*) } \
+ _SDATA_START_ = ABSOLUTE(.); *(.sdata*) \
+ . = ALIGN (4); *(.2ram.*) } \
> _region_ \
__rom_data_start = LOADADDR(.data); \
__ram_data_end = .; PROVIDE(__ram_data_end = .); \