Commit c2e3b3bb authored by Alexei Fedorov's avatar Alexei Fedorov
Browse files

BL31: Fix relocation error for PIE



This patch fixes BL31 linker error
 "relocation R_AARCH64_ABS32 against `a local symbol'
 can not be used when making a shared object"
when Position Independent Executable (PIE) support
is enabled with ENABLE_PIE=1 build option.

Change-Id: I2692269676db3f3b27eed499fc029fffb67969be
Signed-off-by: default avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
parent f0b1864f
...@@ -59,7 +59,8 @@ func plat_get_my_stack ...@@ -59,7 +59,8 @@ func plat_get_my_stack
bic x0, x0, #(CACHE_WRITEBACK_GRANULE - 1) bic x0, x0, #(CACHE_WRITEBACK_GRANULE - 1)
ret x10 ret x10
#endif #endif
.word platform_normal_stacks /* Prevent linker from removal of stack section */
.quad platform_normal_stacks
#else /* !(IMAGE_BL31 && RECLAIM_INIT_CODE) */ #else /* !(IMAGE_BL31 && RECLAIM_INIT_CODE) */
mov x10, x30 mov x10, x30
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment