[PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

Stephen Rothwell sfr at canb.auug.org.au
Wed Apr 22 08:23:22 AEST 2015


Hi Michael,

On Tue, 21 Apr 2015 19:41:52 +1000 Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> The only little endian configuration we support is ppc64le. As such if
> we're building little endian we don't need a 32-bit VDSO, because there
> is no 32-bit userspace.
> 
> This patch is a fairly ugly mess of #ifdefs, but is the minimal logic
> required to disable the 32-bit VDSO. We can hopefully clean up the
> result in future with some further refactoring.
> 
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/kernel/Makefile           |  3 ++-
>  arch/powerpc/kernel/signal_32.c        | 11 ++++++++--
>  arch/powerpc/kernel/vdso.c             | 38 +++++++++++++++++++++++++++++++++-
>  arch/powerpc/perf/callchain.c          |  5 +++++
>  arch/powerpc/platforms/Kconfig.cputype | 10 +++++++++
>  5 files changed, 63 insertions(+), 4 deletions(-)

I think you could avoid the patches to signal_32.c and callchain.c by
defining vdso32{,_rt}_sigtramp to be 0 in
arch/powerpc/include/asm/vdso.h. There may be other similar fixes.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150422/16f6894b/attachment.sig>


More information about the Linuxppc-dev mailing list