Re: [PATCH] x86: vdso: Use $LD instead of $CC to link

2018-08-03 Thread Alistair Strachan
On Fri, Aug 3, 2018 at 3:26 AM Thomas Gleixner wrote: > > On Wed, 18 Jul 2018, Alistair Strachan wrote: > > export CPPFLAGS_vdso.lds += -P -C > > > > -VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ > > - -Wl,--no-undefined \ > > - -Wl,-z,max-pag

Re: [PATCH] x86: vdso: Use $LD instead of $CC to link

2018-08-03 Thread Thomas Gleixner
On Wed, 18 Jul 2018, Alistair Strachan wrote: > export CPPFLAGS_vdso.lds += -P -C > > -VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ > - -Wl,--no-undefined \ > - -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 \ > -

Re: [PATCH] x86: vdso: Use $LD instead of $CC to link

2018-07-21 Thread Andy Lutomirski
On Wed, Jul 18, 2018 at 3:41 PM, 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) > > T