aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-06-19 13:56:33 +0100
committerMoyster <oysterized@gmail.com>2016-08-26 19:29:36 +0200
commit0900922b32411cafbeeb7ace3a00939749652d87 (patch)
treece3b726037eab68aecec3651804ca9d73b111805 /drivers/regulator
parenta43afdb2a745b113cee0848e92b6597578260010 (diff)
arm64: vdso: work-around broken ELF toolchains in Makefile
commit 6f1a6ae87c0c60d7c462ef8fd071f291aa7a9abb 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> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions