[U-Boot] [PATCH 03/29] blackfin: Add a few useful linker symbols

Simon Glass sjg at chromium.org
Thu Dec 15 04:27:34 CET 2016


Add _image_copy_start, __end and __image_binary_end so we can use the
standard mechanism for locating the device tree. This only works if data
follow text, so use an #ifdef to ensure that for now.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/blackfin/cpu/u-boot.lds | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/blackfin/cpu/u-boot.lds b/arch/blackfin/cpu/u-boot.lds
index f407fb2..30964ad 100644
--- a/arch/blackfin/cpu/u-boot.lds
+++ b/arch/blackfin/cpu/u-boot.lds
@@ -61,6 +61,9 @@ SECTIONS
 {
 	.text.pre :
 	{
+#ifndef CONFIG_MEM_SIZE
+		_image_copy_start = .;
+#endif
 		arch/blackfin/cpu/start.o (.text .text.*)
 
 		LDS_BOARD_TEXT
@@ -125,6 +128,8 @@ SECTIONS
 	__data_l1_lma = LOADADDR(.data_l1);
 	__data_l1_len = SIZEOF(.data_l1);
 	ASSERT (__data_l1_len <= L1_DATA_B_SRAM_SIZE, "L1 data overflow!")
+	__end = __data_l1_lma;
+	__image_binary_end = __data_l1_lma;
 
 	.bss :
 	{
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list