summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Zwisler <zwisler@chromium.org>2019-07-01 09:52:08 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-14 08:01:13 +0200
commit7ce6dfc897ac018c6370370dff1cd03c330c4815 (patch)
tree5dd6e7cd8f4c22452a395ace0511b8999e646c7b
parent0a53ab05d4c316d91fcc5b8b64a9e2de18175ae7 (diff)
downloadlinux-stable-7ce6dfc897ac018c6370370dff1cd03c330c4815.tar.gz
linux-stable-7ce6dfc897ac018c6370370dff1cd03c330c4815.tar.bz2
linux-stable-7ce6dfc897ac018c6370370dff1cd03c330c4815.zip
Revert "x86/build: Move _etext to actual end of .text"
commit 013c66edf207ddb78422b8b636f56c87939c9e34 upstream. This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. Per the discussion here: https://lkml.kernel.org/r/201906201042.3BF5CD6@keescook the above referenced commit breaks kernel compilation with old GCC toolchains as well as current versions of the Gold linker. Revert it to fix the regression and to keep the ability to compile the kernel with these tools. Signed-off-by: Ross Zwisler <zwisler@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Guenter Roeck <groeck@chromium.org> Cc: <stable@vger.kernel.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Kees Cook <keescook@chromium.org> Cc: Johannes Hirte <johannes.hirte@datenkhaos.de> Cc: Klaus Kusche <klaus.kusche@computerix.info> Cc: samitolvanen@google.com Cc: Guenter Roeck <groeck@google.com> Link: https://lkml.kernel.org/r/20190701155208.211815-1-zwisler@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/x86/kernel/vmlinux.lds.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 0850b5149345..4d1517022a14 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -141,10 +141,10 @@ SECTIONS
*(.text.__x86.indirect_thunk)
__indirect_thunk_end = .;
#endif
- } :text = 0x9090
- /* End of text section */
- _etext = .;
+ /* End of text section */
+ _etext = .;
+ } :text = 0x9090
NOTES :text :note