sparc: Validate VDSO for undefined symbols.
authorDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2018 05:36:17 +0000 (22:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2018 23:09:27 +0000 (16:09 -0700)
commitecd4c19f3df7f3687867a2183934efb54a7d3c14
tree226bf19f76f3af813d5805bc53ddf1cf027b1a7f
parent3c2b2d9408b11022614bf656ae56c8fc12001ecc
sparc: Validate VDSO for undefined symbols.

There should be no undefined symbols in the resulting VDSO image(s).

On sparc, fixed register usage can result in undefined symbols ending
up in the image.  To combat this, we do two things:

1) Define current_thread_info() specially when BUILD_DSO.

2) Ignore "#scratch" register undefined symbols in the output.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/thread_info_64.h
arch/sparc/vdso/Makefile
arch/sparc/vdso/checkundef.sh [new file with mode: 0644]