From: Simon Glass Date: Wed, 14 Dec 2016 20:27:34 -0700 Subject: [U-Boot] [PATCH 03/29] blackfin: Add a few useful linker symbols In-Reply-To: <1481772480-29544-1-git-send-email-sjg@chromium.org> References: <1481772480-29544-1-git-send-email-sjg@chromium.org> Message-ID: <1481772480-29544-4-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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