From: Weijie Gao Date: Fri, 20 May 2022 03:21:45 +0000 (+0800) Subject: mips: add __image_copy_len for SPL linker script X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=9a3bbb0eba51cc6abd11354a52fdff709756a7c2;p=u-boot.git mips: add __image_copy_len for SPL linker script This patch adds __image_copy_len needed by TPL of MT7621 SoC. The __image_copy_len represents the binary blob size of both SPL/TPL binaries. To achieve this, __text_start/end are added for calculation. Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- diff --git a/arch/mips/cpu/u-boot-spl.lds b/arch/mips/cpu/u-boot-spl.lds index 194398be85..310a5c5053 100644 --- a/arch/mips/cpu/u-boot-spl.lds +++ b/arch/mips/cpu/u-boot-spl.lds @@ -13,7 +13,9 @@ SECTIONS . = ALIGN(4); .text : { + __text_start = .; *(.text*) + __text_end = .; } > .spl_mem . = ALIGN(4); @@ -36,6 +38,7 @@ SECTIONS . = ALIGN(4); __image_copy_end = .; + __image_copy_len = __image_copy_end - __text_start; _image_binary_end = .;