[RFC PATCH 7/7] MIPS: Add CONFIG_RELOCATABLE Kconfig option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add option to KConfig to enable the kernel to relocate
itself at runtime

Signed-off-by: Matt Redfearn <matt.redfearn@xxxxxxxxxx>
---
 arch/mips/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 6a69bdb07f18..beef7dfabd58 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2472,6 +2472,14 @@ config NUMA
 config SYS_SUPPORTS_NUMA
 	bool
 
+config RELOCATABLE
+	bool "Relocatable kernel"
+	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 NODES_SHIFT
 	int
 	default "6"
-- 
2.1.4





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux