diff options
author | Michal Simek <michal.simek@amd.com> | 2023-04-27 14:26:03 +0200 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2023-06-12 12:50:08 +0200 |
commit | f7d445fcbbd3d5146d95698ace3381fcf522b9af (patch) | |
tree | b777009ed38825ddb7e430a73c2ab4bf1200053e /bl1/bl1.ld.S | |
parent | f4d011b0f07dbc5b56975a0bed25ecee56a52fcd (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 'bl1/bl1.ld.S')
-rw-r--r-- | bl1/bl1.ld.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bl1/bl1.ld.S b/bl1/bl1.ld.S index a2527e63a..49dda855e 100644 --- a/bl1/bl1.ld.S +++ b/bl1/bl1.ld.S @@ -41,6 +41,7 @@ SECTIONS { *bl1_entrypoint.o(.text*) *(SORT_BY_ALIGNMENT(.text*)) *(.vectors) + __TEXT_END_UNALIGNED__ = .; . = ALIGN(PAGE_SIZE); @@ -72,6 +73,7 @@ SECTIONS { * aligned and lld does not align the LMA to the alignment specified * on the .data section. */ + __RODATA_END_UNALIGNED__ = .; __RODATA_END__ = .; . = ALIGN(16); |