[PATCH v2 8/8] armv8: u-boot-spl.lds: mark __image_copy_start as symbol
Alper Nebi Yasak
alpernebiyasak at gmail.com
Sat Jun 18 14:13:13 CEST 2022
From: Peng Fan <peng.fan at nxp.com>
In arch/arm/lib/sections.c there is below code:
char __image_copy_start[0] __section(".__image_copy_start");
But actually 'objdump -t spl/u-boot-spl' not able to find out
symbol '__image_copy_start' for binman update image-pos/size.
So update link file
Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
---
This is from Peng's i.MX8M binman symbols series [1], picked it onto
this series because it made more sense as a binman symbols fix.
[1] armv8: u-boot-spl.lds: mark __image_copy_start as symbol
https://lore.kernel.org/u-boot/20220603071715.15212-5-peng.fan@oss.nxp.com/
Changes in v2:
- Pick Peng's __image_copy_start fix
arch/arm/cpu/armv8/u-boot-spl.lds | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds
index 730eb93dbc3b..9b1e7d462870 100644
--- a/arch/arm/cpu/armv8/u-boot-spl.lds
+++ b/arch/arm/cpu/armv8/u-boot-spl.lds
@@ -23,7 +23,7 @@ SECTIONS
{
.text : {
. = ALIGN(8);
- *(.__image_copy_start)
+ __image_copy_start = .;
CPUDIR/start.o (.text*)
*(.text*)
} >.sram
--
2.36.1
More information about the U-Boot
mailing list