diff mbox

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

Message ID 20170323044152.10905-5-wenyou.yang@atmel.com
State Accepted
Commit 7abd5aabfa8a2137c82d2f401d0da7413dd8cfaf
Delegated to: Andreas Bießmann
Headers show

Commit Message

Wenyou Yang March 23, 2017, 4:41 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>
---

 arch/arm/mach-at91/armv7/u-boot-spl.lds | 2 ++
 1 file changed, 2 insertions(+)
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);