arm-trusted-firmware/lib/xlat_tables_v2
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 xlat v2: Support the EL2 translation regime 2018-08-10 13:47:11 +01:00
aarch64 PIE: Use PC relative adrp/adr for symbol reference 2018-10-29 09:54:31 +00:00
xlat_tables.mk xlat: Fix compatibility between v1 and v2 2018-10-26 14:55:30 +01:00
xlat_tables_context.c Mark xlat tables initialization code 2018-10-03 11:48:15 +01:00
xlat_tables_core.c xlat: Fix checks in mmap_add() and mmap_add_ctx() 2018-10-08 16:15:21 +01:00
xlat_tables_private.h xlat v2: Flush xlat tables after being modified 2018-08-07 12:47:12 +01:00
xlat_tables_utils.c libc: Use printf and snprintf across codebase 2018-08-22 10:26:05 +01:00