Add option to KConfig to enable the kernel to relocate itself at runtime. Relocation is supported on R2 of the MIPS architecture, 32bit and 64bit. Signed-off-by: Matt Redfearn <matt.redfearn@xxxxxxxxxx> --- arch/mips/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b8ed64dfaafc..5b0339c91a33 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2431,6 +2431,15 @@ config NUMA config SYS_SUPPORTS_NUMA bool +config RELOCATABLE + bool "Relocatable kernel" + depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 + help + This builds a kernel image that retains relocation information + so it can be loaded someplace besides the default 1MB. + The relocations make the kernel binary about 15% larger, + but are discarded at runtime + config RELOCATION_TABLE_SIZE hex "Relocation table size" depends on RELOCATABLE -- 2.1.4