linux-stable/arch/arm64
Will Deacon cae650932e arm64: vdso: work-around broken ELF toolchains in Makefile
commit 6f1a6ae87c upstream.

When building the kernel with a bare-metal (ELF) toolchain, the -shared
option may not be passed down to collect2, resulting in silent corruption
of the vDSO image (in particular, the DYNAMIC section is omitted).

The effect of this corruption is that the dynamic linker fails to find
the vDSO symbols and libc is instead used for the syscalls that we
intended to optimise (e.g. gettimeofday). Functionally, there is no
issue as the sigreturn trampoline is still intact and located by the
kernel.

This patch fixes the problem by explicitly passing -shared to the linker
when building the vDSO.

Reported-by: Szabolcs Nagy <Szabolcs.Nagy@arm.com>
Reported-by: James Greenlaigh <james.greenhalgh@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-21 10:10:12 -07:00
..
boot arm64: dts: mt8173-evb: fix model name 2015-06-22 17:03:34 -07:00
configs ARM: SoC 64-bit changes and additions 2015-02-17 09:47:46 -08:00
crypto arm64: crypto: increase AES interleave to 4x 2015-02-26 18:31:46 +00:00
include arm64: errata: add workaround for cortex-a53 erratum #845719 2015-05-06 22:03:55 +02:00
kernel arm64: vdso: work-around broken ELF toolchains in Makefile 2015-07-21 10:10:12 -07:00
kvm Fairly small update, but there are some interesting new features. 2015-02-13 09:55:09 -08:00
lib arm64: __clear_user: handle exceptions on strb 2014-11-13 15:21:26 +00:00
mm arm64: mm: Fix freeing of the wrong memmap entries with !SPARSEMEM_VMEMMAP 2015-07-21 10:10:12 -07:00
net arm64: bpf: fix signedness bug in loading 64-bit immediate 2015-06-06 08:21:02 -07:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig arm64: errata: add workaround for cortex-a53 erratum #845719 2015-05-06 22:03:55 +02:00
Kconfig.debug arm64: add better page protections to arm64 2015-01-22 14:54:29 +00:00
Makefile arm64: Adjust EFI libstub object include logic 2015-05-06 22:03:54 +02:00