summaryrefslogtreecommitdiff
path: root/arch/sh/cpu
diff options
context:
space:
mode:
authorVladimir Zapolskiy <[email protected]>2016-11-28 00:15:26 +0200
committerTom Rini <[email protected]>2016-12-02 21:32:47 -0500
commit9ec4a67ef342b2dbcecc9721f5369f022ea59b26 (patch)
tree3610595bf25ea7b7988f76f5848040a7d8c0d04c /arch/sh/cpu
parent3f8b5391ec531adec6fa7602aeb8894b7a23d44d (diff)
sh: place board lowlevel_init code in the beginning of .text
Reference lowlevel_init of all supported SH2A/SH3/SH4/SH4A boards from a shared linker script, the lowlevel_init function will be called by a relative address. Signed-off-by: Vladimir Zapolskiy <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'arch/sh/cpu')
-rw-r--r--arch/sh/cpu/u-boot.lds2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds
index 6f385633037..e90ac06c370 100644
--- a/arch/sh/cpu/u-boot.lds
+++ b/arch/sh/cpu/u-boot.lds
@@ -31,7 +31,7 @@ SECTIONS
.text :
{
KEEP(*/start.o (.text))
- KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.spiboot1.text))
+ KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.text .spiboot1.text))
KEEP(*(.spiboot2.text))
. = ALIGN(8192);
common/env_embedded.o (.ppcenv)