linux/arch/arm64/kernel/vdso
Will Deacon 6f1a6ae87c arm64: vdso: work-around broken ELF toolchains in Makefile
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.

Cc: <stable@vger.kernel.org>
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>
2015-06-19 14:54:10 +01:00
..
.gitignore
Makefile arm64: vdso: work-around broken ELF toolchains in Makefile 2015-06-19 14:54:10 +01:00
gen_vdso_offsets.sh
gettimeofday.S arm64: vdso: minor ABI fix for clock_getres 2015-02-26 18:13:51 +00:00
note.S
sigreturn.S
vdso.S
vdso.lds.S arm64: vdso: move data page before code pages 2014-07-17 16:18:57 +01:00