Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 1 | From 780df234d98db81485b1f351f902a68def35c9d4 Mon Sep 17 00:00:00 2001 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 2 | From: Jaxson Han <jaxson.han@arm.com> |
| 3 | Date: Tue, 2 Nov 2021 15:10:28 +0800 |
| 4 | Subject: [PATCH] lds: Mark the mem range |
| 5 | |
| 6 | Add firmware_start and firmware_end, so that we can use them to |
| 7 | calculate the mem range of boot-wrapper and then set the range to |
| 8 | /memreserve/ of dtb. |
| 9 | |
| 10 | Issue-ID: SCM-3815 |
| 11 | Upstream-Status: Inappropriate [other] |
| 12 | Implementation pending further discussion |
| 13 | Signed-off-by: Jaxson Han <jaxson.han@arm.com> |
| 14 | Change-Id: Idc5a2894e193c75381049a0f359b4b2a51c567ee |
| 15 | --- |
| 16 | model.lds.S | 2 ++ |
| 17 | 1 file changed, 2 insertions(+) |
| 18 | |
| 19 | diff --git a/model.lds.S b/model.lds.S |
| 20 | index 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 | } |