ARM: module: add support for place relative relocations
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:24:37 +0000 (11:24 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 15:59:43 +0000 (16:59 +0100)
commit22f2d23098f7d34fc5142531cffb241d14611684
treed6abcefd96fe61aa0c89e6f648d8d08ddb7a6591
parent0b1674638a5c69cbace63278625c199100955490
ARM: module: add support for place relative relocations

When using the new adr_l/ldr_l/str_l macros to refer to external symbols
from modules, the linker may emit place relative ELF relocations that
need to be fixed up by the module loader. So add support for these.

Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/include/asm/elf.h
arch/arm/kernel/module.c