android_kernel_oneplus_msm8998/arch/powerpc
Nicholas Piggin 0b42886a35 powerpc/boot: Request no dynamic linker for boot wrapper
commit ff45000fcb56b5b0f1a14a865d3541746d838a0a upstream.

The boot wrapper performs its own relocations and does not require
PT_INTERP segment. However currently we don't tell the linker that.

Prior to binutils 2.28 that works OK. But since binutils commit
1a9ccd70f9a7 ("Fix the linker so that it will not silently generate ELF
binaries with invalid program headers. Fix readelf to report such
invalid binaries.") binutils tries to create a program header segment
due to PT_INTERP, and the link fails because there is no space for it:

  ld: arch/powerpc/boot/zImage.pseries: Not enough room for program headers, try linking with -N
  ld: final link failed: Bad value

So tell the linker not to do that, by passing --no-dynamic-linker.

Cc: stable@vger.kernel.org
Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Drop dependency on ld-version.sh and massage change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
[ajd: backport to v4.4 (resolve conflict with a comment line)]
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-16 10:27:48 +01:00
..
boot powerpc/boot: Request no dynamic linker for boot wrapper 2019-11-16 10:27:48 +01:00
configs powerpc updates for 4.4 2015-11-05 23:38:43 -08:00
crypto
include powerpc/futex: Fix warning: 'oldval' may be used uninitialized in this function 2019-10-07 21:01:00 +02:00
kernel powerpc/64s/exception: machine check use correct cfar for late handler 2019-10-07 21:01:01 +02:00
kvm KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token list 2019-06-22 08:18:26 +02:00
lib powerpc/lib: fix book3s/32 boot failure due to code patching 2019-05-16 19:45:18 +02:00
math-emu
mm powerpc/numa: improve control of topology updates 2019-06-11 12:23:58 +02:00
net powerpc/bpf/jit: Fix 32-bit JIT for seccomp_data access 2018-05-30 07:49:00 +02:00
oprofile
perf powerpc/perf: Fix kernel address leak via sampling registers 2018-05-30 07:49:10 +02:00
platforms powerpc/powernv: Restrict OPAL symbol map to only be readable by root 2019-10-17 13:40:53 -07:00
sysdev powerpc/4xx/uic: clear pending interrupt after irq type/pol change 2019-08-04 09:34:58 +02:00
xmon powerpc/64s: Improve RFI L1-D cache flush fallback 2019-05-16 19:44:44 +02:00
Kconfig powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E 2019-05-16 19:44:49 +02:00
Kconfig.debug
Makefile powerpc: Fix compiling a BE kernel with a powerpc64le toolchain 2019-11-16 10:27:48 +01:00
relocs_check.sh