diff options
author | Balint Dobszay <balint.dobszay@arm.com> | 2020-11-06 11:26:46 +0100 |
---|---|---|
committer | Balint Dobszay <balint.dobszay@arm.com> | 2020-11-06 11:38:18 +0100 |
commit | 7466c4082d7faec2171f7f2664c6cb748cbf8d61 (patch) | |
tree | fe86a1d2a1e7d261227f6619911dbf9a5c076a35 | |
parent | ac7f4110cee21afd7124791b41a4ca28cac119f5 (diff) | |
download | optee_os-7466c4082d7faec2171f7f2664c6cb748cbf8d61.tar.gz |
sp: Fix not linking .sp_head section
When building Secure Partitions, the final binary must start with the
.sp_head section which contains the sp_head struct. Since there is no
reference to this in the code, there might be issues that it is not
linked into the binary. This commit modifies the linker script to force
including this symbol.
Change-Id: I28d50a3d49a3e2bec27ee1f023867276e6f79404
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
-rw-r--r-- | sp/arch/arm/sp.ld.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sp/arch/arm/sp.ld.S b/sp/arch/arm/sp.ld.S index 932303e1d..96811cc57 100644 --- a/sp/arch/arm/sp.ld.S +++ b/sp/arch/arm/sp.ld.S @@ -7,6 +7,7 @@ OUTPUT_FORMAT("elf64-littleaarch64") OUTPUT_ARCH(aarch64) #endif +EXTERN(sp_head) SECTIONS { .sp_head : {*(.sp_head)} |