diff mbox

[U-Boot,v2,4/4] ARM: at91: lds: use "_image_binary_end" for DT location

Message ID 20170324033406.16457-5-wenyou.yang@atmel.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Wenyou Yang March 24, 2017, 3:34 a.m. UTC
The MMC SPL locates the BSS section to a different memory region
from text, then use "_image_binary_end" variable to point to the
correct device tree location.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
---

Changes in v2:
 - Drop [PATCH] ARM: at91: lds: add test SPL binary size and bbs size.

 arch/arm/mach-at91/armv7/u-boot-spl.lds | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass April 13, 2017, 9:17 p.m. UTC | #1
On 23 March 2017 at 21:34, Wenyou Yang <wenyou.yang@atmel.com> wrote:
> The MMC SPL locates the BSS section to a different memory region
> from text, then use "_image_binary_end" variable to point to the
> correct device tree location.
>
> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
> ---
>
> Changes in v2:
>  - Drop [PATCH] ARM: at91: lds: add test SPL binary size and bbs size.
>
>  arch/arm/mach-at91/armv7/u-boot-spl.lds | 2 ++
>  1 file changed, 2 insertions(+)
>

Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/arch/arm/mach-at91/armv7/u-boot-spl.lds b/arch/arm/mach-at91/armv7/u-boot-spl.lds
index c667c5555b..d2e41a026c 100644
--- a/arch/arm/mach-at91/armv7/u-boot-spl.lds
+++ b/arch/arm/mach-at91/armv7/u-boot-spl.lds
@@ -47,6 +47,8 @@  SECTIONS
 		*(.__end)
 	} >.sram
 
+	_image_binary_end = .;
+
 	.bss :
 	{
 		. = ALIGN(4);