diff options
author | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | 2021-05-25 16:37:00 +0200 |
---|---|---|
committer | David Hu <david.hu@arm.com> | 2021-05-26 03:32:11 +0200 |
commit | 6a6158c390bb23ed56b510c48061d995599a98bb (patch) | |
tree | 99d43792b65c83d81c1cff3cd245c986f54f35ca | |
parent | e8b563b354190cffb21ba4147ee961991573feec (diff) | |
download | trusted-firmware-m-6a6158c390bb23ed56b510c48061d995599a98bb.tar.gz |
platform: nordic nrf: fix linker script
Nordic nRF-based platforms use a custom linker script, for
the GCC toolchain, which was missing the definition of the
section that is to hold partition static read only data.
The fix was copied from the common GCC linker script for
ARMv8-M platforms.
Change-Id: I18b74962f7dff2e79d22f87e2fc03b8264342b79
Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
-rw-r--r-- | platform/ext/target/nordic_nrf/common/core/gcc/nordic_nrf_s.ld | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/ext/target/nordic_nrf/common/core/gcc/nordic_nrf_s.ld b/platform/ext/target/nordic_nrf/common/core/gcc/nordic_nrf_s.ld index a8e10836a2..c2fb868032 100644 --- a/platform/ext/target/nordic_nrf/common/core/gcc/nordic_nrf_s.ld +++ b/platform/ext/target/nordic_nrf/common/core/gcc/nordic_nrf_s.ld @@ -169,6 +169,15 @@ SECTIONS Image$$TFM_UNPRIV_CODE$$RO$$Base = ADDR(.TFM_UNPRIV_CODE); Image$$TFM_UNPRIV_CODE$$RO$$Limit = ADDR(.TFM_UNPRIV_CODE) + SIZEOF(.TFM_UNPRIV_CODE); + /**** Section for holding partition static RO data */ + .TFM_SP_STATIC_LIST : ALIGN(4) + { + KEEP(*(.partition_info)) + } > FLASH + Image$$TFM_SP_STATIC_LIST$$RO$$Base = ADDR(.TFM_SP_STATIC_LIST); + Image$$TFM_SP_STATIC_LIST$$RO$$Limit = ADDR(.TFM_SP_STATIC_LIST) + SIZEOF(.TFM_SP_STATIC_LIST); + . = ALIGN(32); + /**** PSA RoT RO part (CODE + RODATA) start here */ Image$$TFM_PSA_CODE_START$$Base = .; |