blob: c34d01c386daeb9e52fac54c6885f08f47c79d3f [file] [log] [blame]
Andrew Geissler9347dd42023-03-03 12:38:41 -06001From 780df234d98db81485b1f351f902a68def35c9d4 Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Jaxson Han <jaxson.han@arm.com>
3Date: Tue, 2 Nov 2021 15:10:28 +0800
4Subject: [PATCH] lds: Mark the mem range
5
6Add firmware_start and firmware_end, so that we can use them to
7calculate the mem range of boot-wrapper and then set the range to
8/memreserve/ of dtb.
9
10Issue-ID: SCM-3815
11Upstream-Status: Inappropriate [other]
12 Implementation pending further discussion
13Signed-off-by: Jaxson Han <jaxson.han@arm.com>
14Change-Id: Idc5a2894e193c75381049a0f359b4b2a51c567ee
15---
16 model.lds.S | 2 ++
17 1 file changed, 2 insertions(+)
18
19diff --git a/model.lds.S b/model.lds.S
20index d4e7e13..ab98ddf 100644
21--- a/model.lds.S
22+++ b/model.lds.S
23@@ -64,6 +64,7 @@ SECTIONS
24 #endif
25
26 .boot PHYS_OFFSET: {
27+ PROVIDE(firmware_start = .);
28 *(.init)
29 *(.text*)
30 *(.data* .rodata* .bss* COMMON)
31@@ -76,6 +77,7 @@ SECTIONS
32 mbox = .;
33 QUAD(0x0)
34 }
35+ PROVIDE(firmware_end = .);
36
37 ASSERT(etext <= (PHYS_OFFSET + TEXT_LIMIT), ".text overflow!")
38 }