[U-Boot] [PATCH 1/4] sh: Fix incorrect linking with new binutils

Marek Vasut marek.vasut at gmail.com
Sat Sep 14 19:25:45 UTC 2019


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 at gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
 arch/sh/cpu/u-boot.lds | 1 +
 1 file changed, 1 insertion(+)

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 = .);
-- 
2.23.0.rc1



More information about the U-Boot mailing list