From: Marek Vasut Date: Sat, 14 Sep 2019 17:03:32 +0000 (+0200) Subject: sh: Fix incorrect linking with new binutils X-Git-Tag: v2019.10-rc4~8^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e914109de48d3baf8baf8a2fcada78a0dbe7757c;hp=87d5b225585f341ea8e926a2c26fb72585fc9d0c;p=oweals%2Fu-boot.git 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 Cc: Nobuhiro Iwamatsu --- diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds index 47302da252..4cc97737f1 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 = .);