x86/relocs: Add percpu fixup for GNU ld 2.23
authorKees Cook <keescook@chromium.org>
Wed, 16 Oct 2013 06:43:14 +0000 (23:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Oct 2013 06:45:09 +0000 (08:45 +0200)
commitaec58bafaf89279522c44ec8ca9211eabb2b6976
treea22c5bfa255d386d9ec658c554cd6cd7ac3621b6
parent6e6a4932b0f569b1a5bb4fcbf5dde1b1a42f01bb
x86/relocs: Add percpu fixup for GNU ld 2.23

The GNU linker tries to put __per_cpu_load into the percpu area,
resulting in a lack of its relocation. Force this symbol to be
relocated. Seen starting with GNU ld 2.23 and later.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Michael Davidson <md@google.com>
Cc: Cong Ding <dinggnu@gmail.com>
Link: http://lkml.kernel.org/r/20131016064314.GA2739@www.outflux.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/tools/relocs.c