Re: [PATCH] x86: vdso: Fix leaky vdso link with CC=clang

From: H. Peter Anvin
Date: Thu Jul 12 2018 - 16:25:30 EST


On 07/12/18 13:10, Alistair Strachan wrote:
> The vdso{32,64}.so can fail to link with CC=clang when clang tries to
> find a suitable GCC toolchain to link these libraries with.
>
> /usr/bin/ld: arch/x86/entry/vdso/vclock_gettime.o:
> access beyond end of merged section (782)
>
> This happens because the host environment leaked into the cross
> compiler environment due to the way clang searches for suitable GCC
> toolchains.
>

Is this another clang bug that you want a workaround for in the kernel?

-hpa