summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2019-09-14 19:03:32 +0200
committerMarek Vasut <[email protected]>2019-09-14 21:28:54 +0200
commite914109de48d3baf8baf8a2fcada78a0dbe7757c (patch)
tree352b45a1ad9c43fd0b641a0aebe53420122a8192
parent87d5b225585f341ea8e926a2c26fb72585fc9d0c (diff)
sh: Fix incorrect linking with new binutils
Since binutils 2.30 , the resulting U-Boot binary was incorrectly linked against address 0 instead of text base, fix it. Signed-off-by: Marek Vasut <[email protected]> Cc: Nobuhiro Iwamatsu <[email protected]>
-rw-r--r--arch/sh/cpu/u-boot.lds1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds
index 47302da252a..4cc97737f1c 100644
--- a/arch/sh/cpu/u-boot.lds
+++ b/arch/sh/cpu/u-boot.lds
@@ -25,6 +25,7 @@ ENTRY(_start)
SECTIONS
{
+ . = CONFIG_SYS_TEXT_BASE;
reloc_dst = .;
PROVIDE (_ftext = .);