diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-11 00:11:26 +0400 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2014-08-18 01:58:24 +0400 |
commit | 9e6abd2a98ca599e0efb8c46acc17f17dc1a6fe9 (patch) | |
tree | fe4e6b44df6be66c40bf0fda83b4a2a5c5e928a9 /arch/x86/boot/compressed/aslr.c | |
parent | 9a1cb47112eff140659f04c261ca19fb1f002607 (diff) | |
download | linux-9e6abd2a98ca599e0efb8c46acc17f17dc1a6fe9.tar.xz |
x86, boot: Don't compile aslr.c when !CONFIG_RANDOMIZE_BASE
All the code in aslr.c gets compiled out if !CONFIG_RANDOMIZE_BASE, but
aslr.o itself still gets compiled in. Eliminate it from the compile
entirely in that case.
This does not change the generated code at all, in either case.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'arch/x86/boot/compressed/aslr.c')
-rw-r--r-- | arch/x86/boot/compressed/aslr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compressed/aslr.c index fc6091abedb7..913c999b0045 100644 --- a/arch/x86/boot/compressed/aslr.c +++ b/arch/x86/boot/compressed/aslr.c @@ -1,6 +1,5 @@ #include "misc.h" -#ifdef CONFIG_RANDOMIZE_BASE #include <asm/msr.h> #include <asm/archrandom.h> #include <asm/e820.h> @@ -320,5 +319,3 @@ unsigned char *choose_kernel_location(unsigned char *input, out: return (unsigned char *)choice; } - -#endif /* CONFIG_RANDOMIZE_BASE */ |