arm-trusted-firmware/include/common
Soby Mathew 931f7c6156 PIE: Position Independant Executable support for BL31
This patch introduces Position Independant Executable(PIE) support
in TF-A. As a initial prototype, only BL31 can support PIE. A trivial
dynamic linker is implemented which supports fixing up Global Offset
Table(GOT) and Dynamic relocations(.rela.dyn). The fixup_gdt_reloc()
helper function implements this linker and this needs to be called
early in the boot sequence prior to invoking C functions. The GOT is
placed in the RO section of BL31 binary for improved security and the
BL31 linker script is modified to export the appropriate symbols
required for the dynamic linker.

The C compiler always generates PC relative addresses to linker symbols
and hence referencing symbols exporting constants are a problem when
relocating the binary. Hence the reference to the
`__PERCPU_TIMESTAMP_SIZE__` symbol in PMF is removed and is now calculated
at runtime based on start and end addresses.

Change-Id: I1228583ff92cf432963b7cef052e95d995cca93d
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-29 09:54:32 +00:00
..
aarch32 Multi-console: Deprecate the `finish_console_register` macro 2018-10-19 17:34:52 +01:00
aarch64 PIE: Use PC relative adrp/adr for symbol reference 2018-10-29 09:54:31 +00:00
tbbr Add new defines for STM32MP1 platform 2018-10-15 09:36:21 +02:00
asm_macros_common.S Remove .func and .endfunc assembler directives 2018-07-11 09:22:56 +01:00
bl_common.h PIE: Position Independant Executable support for BL31 2018-10-29 09:54:32 +00:00
debug.h Reorder log level macro definitions for clarity 2018-10-10 12:11:32 +01:00
desc_image_load.h Remove build option LOAD_IMAGE_V2 2018-09-28 15:31:52 +01:00
ep_info.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
fdt_wrappers.h Remove some MISRA defects in common code 2018-10-04 15:43:52 +01:00
image_decompress.h image_decompress: add APIs for decompressing images 2018-02-02 00:19:08 +09:00
interrupt_props.h plat/arm: Fix misra warnings in platform code 2018-10-11 17:01:07 +01:00
param_header.h Fix MISRA defects in some common headers 2018-08-30 09:22:33 +01:00
romlib.h Add support for romlib in the build system 2018-08-03 11:31:42 +01:00
runtime_svc.h Fix misra warnings in SMC and power mgmt code 2018-10-09 12:23:55 +01:00