]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: Fix incorrect linking with new binutils
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 14 Sep 2019 17:03:32 +0000 (19:03 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 14 Sep 2019 19:28:54 +0000 (21:28 +0200)
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 <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/u-boot.lds

index 47302da252a9311369d50b4d3df7b8f32edeb9f5..4cc97737f1c97e0ad6811f633460cbf20bfb80a1 100644 (file)
@@ -25,6 +25,7 @@ ENTRY(_start)
 
 SECTIONS
 {
+       . = CONFIG_SYS_TEXT_BASE;
        reloc_dst = .;
 
        PROVIDE (_ftext = .);