summaryrefslogtreecommitdiff
path: root/bl32
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2023-04-27 14:26:03 +0200
committerSandrine Bailleux <sandrine.bailleux@arm.com>2023-06-12 12:50:08 +0200
commitf7d445fcbbd3d5146d95698ace3381fcf522b9af (patch)
treeb777009ed38825ddb7e430a73c2ab4bf1200053e /bl32
parentf4d011b0f07dbc5b56975a0bed25ecee56a52fcd (diff)
chore(bl): add UNALIGNED symbols for TEXT/RODATA
Add symbols to mark end of TEXT/RODATA before page alignment. Similar change was done by commit 8d69a03f6a7d ("Various improvements/cleanups on the linker scripts") for RO_END/COHERENT_RAM. These symbols help to know how much free space is in the final binary because of page alignment. Also show all *UNALIGNED__ symbols via poetry. For example: poetry run memory -p zynqmp -b debug Change-Id: I322beba37dad76be9f4e88ca7e5b3eff2df7d96e Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'bl32')
-rw-r--r--bl32/sp_min/sp_min.ld.S2
-rw-r--r--bl32/tsp/tsp.ld.S2
2 files changed, 4 insertions, 0 deletions
diff --git a/bl32/sp_min/sp_min.ld.S b/bl32/sp_min/sp_min.ld.S
index 0a2bad01e..dd8197332 100644
--- a/bl32/sp_min/sp_min.ld.S
+++ b/bl32/sp_min/sp_min.ld.S
@@ -34,6 +34,7 @@ SECTIONS {
*entrypoint.o(.text*)
*(SORT_BY_ALIGNMENT(.text*))
*(.vectors)
+ __TEXT_END_UNALIGNED__ = .;
. = ALIGN(PAGE_SIZE);
@@ -58,6 +59,7 @@ SECTIONS {
. = ALIGN(8);
# include <lib/el3_runtime/pubsub_events.h>
+ __RODATA_END_UNALIGNED__ = .;
. = ALIGN(PAGE_SIZE);
diff --git a/bl32/tsp/tsp.ld.S b/bl32/tsp/tsp.ld.S
index b735f45e8..22bf11dad 100644
--- a/bl32/tsp/tsp.ld.S
+++ b/bl32/tsp/tsp.ld.S
@@ -30,6 +30,7 @@ SECTIONS {
*tsp_entrypoint.o(.text*)
*(.text*)
*(.vectors)
+ __TEXT_END_UNALIGNED__ = .;
. = ALIGN(PAGE_SIZE);
@@ -43,6 +44,7 @@ SECTIONS {
RODATA_COMMON
+ __RODATA_END_UNALIGNED__ = .;
. = ALIGN(PAGE_SIZE);
__RODATA_END__ = .;