Home
last modified time | relevance | path

Searched hist:"62056 e4e8f9dcd298b441454b372c0720ed2abc1" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/plat/arm/board/arm_fpga/include/
H A Dplatform_def.h62056e4e8f9dcd298b441454b372c0720ed2abc1 Tue Jan 07 14:43:01 UTC 2020 Oliver Swede <oli.swede@arm.com> plat/arm/board/arm_fpga: Enable position-independent execution

This allows the BL31 port to run with position-independent execution
enabled so that it can be ran from any address in the system.
This increases the flexibility of the image, allowing it to be ran from
other locations rather than only its hardcoded absolute address
(currently set to the typical DRAM base of 2GB). This may be useful for
future images that describe system configurations with other memory
layouts (e.g. where SRAM is included).

It does this by setting ENABLE_PIE=1 and changing the absolute
address to 0. The load address of bl31.bin can then be specified by
the -l [load address] argument in the fpga-run command (additionally,
this address is required by any preceding payloads that specify the
start address. For ELF payloads this is usually extracted automatically
by reading the entrypoint address in the header, however bl31.bin is a
different file format so has this additional dependency).

Signed-off-by: Oliver Swede <oli.swede@arm.com>
Change-Id: Idd74787796ab0cf605fe2701163d9c4b3223a143