]> git.dujemihanovic.xyz Git - u-boot.git/commit
qemu-arm64: Enable POSITION_INDEPENDENT
authorAndre Przywara <andre.przywara@arm.com>
Wed, 30 Sep 2020 16:39:18 +0000 (17:39 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitf5cb6c3081dfbd36dd0be9b9f4b42a6885b640b9
tree6f3f40e4e228f8698b1357e52fb14309022ea96d
parentf8df0560b6671285d6293986d58bdb968a49f209
qemu-arm64: Enable POSITION_INDEPENDENT

Now that PIE works when U-Boot is started from ROM, let's enable
CONFIG_POSITION_INDEPENDENT, which allows to load U-Boot also via
ARM Trusted-Firmware's fip.bin to DRAM, without tweaking the
configuration.

To get a writable initial stack, we need to keep the fixed initial
stack pointer, which points to DRAM in our case.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
arch/arm/Kconfig
configs/qemu_arm64_defconfig