powerpc/vdso: Retrieve sigtramp offsets at buildtime
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sun, 27 Sep 2020 09:16:33 +0000 (09:16 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:17 +0000 (01:01 +1100)
commit91bf695596f594e42d69d70deb2ae53cafecf77c
treef227a7426c8e357087db461585f0d48b2969f6fb
parent550e6074c106e1a6fb57dfef62f0daede12d832c
powerpc/vdso: Retrieve sigtramp offsets at buildtime

This is copied from arm64.

Instead of using runtime generated signal trampoline offsets,
get offsets at buildtime.

If the said trampoline doesn't exist, build will fail. So no
need to check whether the trampoline exists or not in the VDSO.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f8bfd6812c3e3678b1cdb4d55a52f9eb022b40d3.1601197618.git.christophe.leroy@csgroup.eu
12 files changed:
arch/powerpc/Makefile
arch/powerpc/include/asm/vdso.h
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c
arch/powerpc/kernel/vdso32/Makefile
arch/powerpc/kernel/vdso32/gen_vdso_offsets.sh [new file with mode: 0755]
arch/powerpc/kernel/vdso32/vdso32.lds.S
arch/powerpc/kernel/vdso64/Makefile
arch/powerpc/kernel/vdso64/gen_vdso_offsets.sh [new file with mode: 0755]
arch/powerpc/kernel/vdso64/vdso64.lds.S
arch/powerpc/perf/callchain_32.c
arch/powerpc/perf/callchain_64.c