mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
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>
This commit is contained in:
parent
bd33e5c613
commit
c23bff63fb
4 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
@ -72,6 +73,10 @@ SECTIONS
|
|||
common/env_embedded.o (.text)
|
||||
#endif
|
||||
|
||||
__initcode_start = .;
|
||||
cpu/blackfin/initcode.o (.text)
|
||||
__initcode_end = .;
|
||||
|
||||
*(.text .text.*)
|
||||
} >ram
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
@ -72,6 +73,10 @@ SECTIONS
|
|||
common/env_embedded.o (.text)
|
||||
#endif
|
||||
|
||||
__initcode_start = .;
|
||||
cpu/blackfin/initcode.o (.text)
|
||||
__initcode_end = .;
|
||||
|
||||
*(.text .text.*)
|
||||
} >ram
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue