arm64: module-plts: factor out PLT generation code for ftrace

commit 7e8b9c1d2e 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>
This commit is contained in:
Ard Biesheuvel 2017-11-20 17:41:29 +00:00 • committed by Greg Kroah-Hartman
commit e1b4e001b2
2 changed files with 46 additions and 36 deletions