]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: genvdso: Remove GOT checks
authorPaul Burton <paul.burton@mips.com>
Mon, 6 Aug 2018 22:24:25 +0000 (15:24 -0700)
committerPaul Burton <paul.burton@mips.com>
Mon, 6 Aug 2018 22:28:46 +0000 (15:28 -0700)
commit4467f7ad7dbb0af5136fadb32dba37bc0388194f
tree32cc032530a0ca9faa01ab4f0332826e5153c8ed
parent7dc084d62591bd5d7d09b4801fd4ec4ea3c59dca
MIPS: genvdso: Remove GOT checks

Our genvdso tool performs some rather paranoid checking that the VDSO
library isn't attempting to make use of a GOT by constraining the number
of entries that the GOT is allowed to contain to the minimum 2 entries
that are always generated by binutils.

Unfortunately lld prior to revision 334390 generates a third entry,
which is unused & thus harmless but falls foul of genvdso's checks &
causes the build to fail.

Since we already check that the VDSO contains no relocations it seems
reasonable to presume that it also doesn't contain use of a GOT, which
would involve relocations. Thus rather than attempting to work around
this issue by allowing 3 GOT entries when using lld, simply remove the
GOT checks which seem overly paranoid.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20152/
Cc: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
arch/mips/vdso/genvdso.h