diff mbox series

[v2,2/3] microblaze: u-boot-spl.lds: Pass _image_binary_end

Message ID 20230701023053.747972-2-festevam@gmail.com
State Accepted
Commit 1758b64f6df259542c6f662d18e3f13f79597585
Delegated to: Tom Rini
Headers show
Series [v2,1/3] sunxi: u-boot-spl.lds: Pass _image_binary_end | expand

Commit Message

Fabio Estevam July 1, 2023, 2:30 a.m. UTC
From: Fabio Estevam <festevam@denx.de>

Pass _image_binary_end to make a standard way to indicate the end
of the text section in SPL.

The motivation for this is to have a uniform way to handle
the SPL boundary checks.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- Newly introduced to avoid build failure.

 arch/microblaze/cpu/u-boot-spl.lds | 1 +
 1 file changed, 1 insertion(+)

Comments

Marek Vasut July 1, 2023, 1:06 p.m. UTC | #1
On 7/1/23 04:30, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> Pass _image_binary_end to make a standard way to indicate the end
> of the text section in SPL.
> 
> The motivation for this is to have a uniform way to handle
> the SPL boundary checks.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Reviewed-by: Marek Vasut <marex@denx.de>
Tom Rini July 3, 2023, 6:28 p.m. UTC | #2
On Fri, Jun 30, 2023 at 11:30:52PM -0300, Fabio Estevam wrote:

> From: Fabio Estevam <festevam@denx.de>
> 
> Pass _image_binary_end to make a standard way to indicate the end
> of the text section in SPL.
> 
> The motivation for this is to have a uniform way to handle
> the SPL boundary checks.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> Reviewed-by: Marek Vasut <marex@denx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/microblaze/cpu/u-boot-spl.lds b/arch/microblaze/cpu/u-boot-spl.lds
index 4ac5a21524c5..597095195cae 100644
--- a/arch/microblaze/cpu/u-boot-spl.lds
+++ b/arch/microblaze/cpu/u-boot-spl.lds
@@ -54,6 +54,7 @@  SECTIONS
 		__bss_end = .;
 	}
 	_end = . ;
+	_image_binary_end = .;
 }
 
 #if defined(CONFIG_SPL_MAX_FOOTPRINT)