arm64: module-plts: factor out PLT generation code for ftrace
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 20 Nov 2017 17:41:29 +0000 (17:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:26:31 +0000 (11:26 +0100)
commite1b4e001b22a12b67c890f4611bcf55285fd0fc5
tree96b1ab2025dcbb3febeee2a00e8ce1dcdc71078a
parent69af22696bc737dfe3444d2ece5db000fbff5c35
arm64: module-plts: factor out PLT generation code for ftrace

commit 7e8b9c1d2e2f5f45db7d40b50d14f606097c25de upstream.

To allow the ftrace trampoline code to reuse the PLT entry routines,
factor it out and move it into asm/module.h.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/module.h
arch/arm64/kernel/module-plts.c