summaryrefslogtreecommitdiff
path: root/arch/arm64/crypto/sha256-glue.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-01-11 17:54:53 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2017-01-12 21:10:52 +0300
commit41c066f2c4d436c535616fe182331766c57838f0 (patch)
treea805b9567c20c7d8b3853d57b6915b80ca7c5b49 /arch/arm64/crypto/sha256-glue.c
parent69d012345a1a32d3f03957f14d972efccc106a98 (diff)
downloadlinux-41c066f2c4d436c535616fe182331766c57838f0.tar.xz
arm64: assembler: make adr_l work in modules under KASLR
When CONFIG_RANDOMIZE_MODULE_REGION_FULL=y, the offset between loaded modules and the core kernel may exceed 4 GB, putting symbols exported by the core kernel out of the reach of the ordinary adrp/add instruction pairs used to generate relative symbol references. So make the adr_l macro emit a movz/movk sequence instead when executing in module context. While at it, remove the pointless special case for the stack pointer. Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/crypto/sha256-glue.c')
0 files changed, 0 insertions, 0 deletions