[PATCH] arm64: vdso: work-around broken ELF toolchains in Makefile
Catalin Marinas
catalin.marinas at arm.com
Fri Jun 19 07:10:07 PDT 2015
On Fri, Jun 19, 2015 at 01:56:33PM +0100, Will Deacon wrote:
> 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 at vger.kernel.org>
> Reported-by: Szabolcs Nagy <Szabolcs.Nagy at arm.com>
> Reported-by: James Greenlaigh <james.greenhalgh at arm.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>
Queued for 4.2. Thanks.
--
Catalin
More information about the linux-arm-kernel
mailing list