summaryrefslogtreecommitdiffstats
path: root/board/bf561-ezkit
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-11 20:47:58 -0400
committerMike Frysinger <vapier@gentoo.org>2008-10-23 05:03:51 -0400
commitc23bff63fb03cb9dbcd26522841e53f9b34fa1ab (patch)
treeb3c5d2bc531359606192f123c77338cf52282386 /board/bf561-ezkit
parentbd33e5c613cf70e3cb51a73fdd653fe83b942bb0 (diff)
downloadblackbird-obmc-uboot-c23bff63fb03cb9dbcd26522841e53f9b34fa1ab.tar.gz
blackbird-obmc-uboot-c23bff63fb03cb9dbcd26522841e53f9b34fa1ab.zip
Blackfin: linker scripts: force start.o and set initcode boundaries
Make sure that the start.o object is always the first object in our linker script regardless of configuration settings, and add some linker symbols so the ldr utility can properly locate the initcode when generating a LDR. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf561-ezkit')
-rw-r--r--board/bf561-ezkit/u-boot.lds.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/bf561-ezkit/u-boot.lds.S b/board/bf561-ezkit/u-boot.lds.S
index 3defef45ae..99d6be634f 100644
--- a/board/bf561-ezkit/u-boot.lds.S
+++ b/board/bf561-ezkit/u-boot.lds.S
@@ -54,6 +54,8 @@ SECTIONS
{
.text :
{
+ cpu/blackfin/start.o (.text)
+
#ifdef ENV_IS_EMBEDDED
/* WARNING - the following is hand-optimized to fit within
* the sector before the environment sector. If it throws
@@ -61,7 +63,6 @@ SECTIONS
* it linked after the configuration sector.
*/
- cpu/blackfin/start.o (.text)
cpu/blackfin/traps.o (.text)
cpu/blackfin/interrupt.o (.text)
cpu/blackfin/serial.o (.text)
@@ -74,6 +75,10 @@ SECTIONS
common/env_embedded.o (.text)
#endif
+ __initcode_start = .;
+ cpu/blackfin/initcode.o (.text)
+ __initcode_end = .;
+
*(.text .text.*)
} >ram
OpenPOWER on IntegriCloud