diff options
Diffstat (limited to 'arch/arm64/Kconfig.debug')
-rw-r--r-- | arch/arm64/Kconfig.debug | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug index 1c1b75629842..4ee8e90b7a45 100644 --- a/arch/arm64/Kconfig.debug +++ b/arch/arm64/Kconfig.debug | |||
@@ -28,4 +28,19 @@ config PID_IN_CONTEXTIDR | |||
28 | instructions during context switch. Say Y here only if you are | 28 | instructions during context switch. Say Y here only if you are |
29 | planning to use hardware trace tools with this kernel. | 29 | planning to use hardware trace tools with this kernel. |
30 | 30 | ||
31 | config ARM64_RANDOMIZE_TEXT_OFFSET | ||
32 | bool "Randomize TEXT_OFFSET at build time" | ||
33 | help | ||
34 | Say Y here if you want the image load offset (AKA TEXT_OFFSET) | ||
35 | of the kernel to be randomized at build-time. When selected, | ||
36 | this option will cause TEXT_OFFSET to be randomized upon any | ||
37 | build of the kernel, and the offset will be reflected in the | ||
38 | text_offset field of the resulting Image. This can be used to | ||
39 | fuzz-test bootloaders which respect text_offset. | ||
40 | |||
41 | This option is intended for bootloader and/or kernel testing | ||
42 | only. Bootloaders must make no assumptions regarding the value | ||
43 | of TEXT_OFFSET and platforms must not require a specific | ||
44 | value. | ||
45 | |||
31 | endmenu | 46 | endmenu |