aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorChia-Wei Wang <chiawei_wang@aspeedtech.com>2021-08-03 10:50:10 +0800
committerTom Rini <trini@konsulko.com>2021-09-02 09:48:20 -0400
commitcd82f199852d88218e1f17f5ec07cdd9112a89c4 (patch)
treef69d3b9a4abc0505567961380bd69929e5570318 /arch/arm/Kconfig
parentaa29b21d62d298fadcfbc8e36d8d248fbb24b52d (diff)
downloadu-boot-cd82f199852d88218e1f17f5ec07cdd9112a89c4.zip
u-boot-cd82f199852d88218e1f17f5ec07cdd9112a89c4.tar.gz
u-boot-cd82f199852d88218e1f17f5ec07cdd9112a89c4.tar.bz2
armv7: Add Position Independent Execution support
A U-Boot image could be loaded and executed at a different location than it was linked at. For example, Aspeed takes a stable release version of U-Boot image as the golden one for recovery purposes. When the primary storage such as flash is corrupted, the golden image would be loaded to any SRAM/DRAM address on demands through ethernet/UART/etc and run for rescue. To deal with this condition, the PIE is needed as there is only one signed, golden image, which could be however executed at different places. This patch adds the PIE support for ARMv7 platform. Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 31ae295..50efb5e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -11,7 +11,7 @@ config ARM64
config POSITION_INDEPENDENT
bool "Generate position-independent pre-relocation code"
- depends on ARM64
+ depends on ARM64 || CPU_V7A
help
U-Boot expects to be linked to a specific hard-coded address, and to
be loaded to and run from that address. This option lifts that