arm-trusted-firmware/lib
Soby Mathew f1722b693d PIE: Use PC relative adrp/adr for symbol reference
This patch fixes up the AArch64 assembly code to use
adrp/adr instructions instead of ldr instruction for
reference to symbols. This allows these assembly
sequences to be Position Independant. Note that the
the reference to sizes have been replaced with
calculation of size at runtime. This is because size
is a constant value and does not depend on execution
address and using PC relative instructions for loading
them makes them relative to execution address. Also
we cannot use `ldr` instruction to load size as it
generates a dynamic relocation entry which must *not*
be fixed up and it is difficult for a dynamic loader
to differentiate which entries need to be skipped.

Change-Id: I8bf4ed5c58a9703629e5498a27624500ef40a836
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-29 09:54:31 +00:00
..
aarch32 libc: armclang: Implement compiler printf symbols 2018-08-22 10:26:05 +01:00
aarch64 Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
compiler-rt libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
coreboot coreboot: Add support for CBMEM console 2018-01-19 15:21:12 -08:00
cpus ti: k3: common: Do not disable cache on TI K3 core powerdown 2018-10-16 09:27:53 -05:00
el3_runtime AArch64: Enable lower ELs to use pointer authentication 2018-10-16 08:31:13 +01:00
extensions Mark BL31 initialization functions 2018-10-03 11:47:30 +01:00
libc libc: Integrate strrchr in libc 2018-10-23 18:27:45 +01:00
libfdt libfdt: Import version v1.4.7 2018-10-23 18:34:40 +01:00
locks Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
optee Fixed ARM-software/tf-issues#603 2018-08-23 14:44:18 -06:00
pmf libc: Use printf and snprintf across codebase 2018-08-22 10:26:05 +01:00
psci Merge pull request #1624 from glneo/less-cache-flushing 2018-10-12 14:16:57 +01:00
romlib PIE: Use PC relative adrp/adr for symbol reference 2018-10-29 09:54:31 +00:00
semihosting Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
stack_protector Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
utils Fix MISRA rule 8.3 2018-07-10 11:17:51 +01:00
xlat_tables xlat: Fix checks in mmap_add() and mmap_add_ctx() 2018-10-08 16:15:21 +01:00
xlat_tables_v2 PIE: Use PC relative adrp/adr for symbol reference 2018-10-29 09:54:31 +00:00
zlib zlib: Fix build error when LOG_LEVEL=50 2018-02-08 09:36:48 +01:00