Ard Biesheuvel 41c066f2c4 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>
2017-01-12 18:10:52 +00:00
..
2016-12-22 14:34:24 +01:00
2015-10-28 19:09:17 +00:00
2016-12-13 16:39:21 -08:00
2016-12-13 16:39:21 -08:00
2016-09-09 11:41:13 +01:00
2016-11-07 18:15:21 +00:00
2014-11-05 09:03:25 +01:00
2016-12-13 16:39:21 -08:00
2016-03-04 18:19:17 +00:00
2016-12-13 16:39:21 -08:00
2016-06-27 16:31:25 +01:00
2016-09-08 12:53:00 +02:00
2016-11-16 18:05:10 +00:00
2016-12-13 16:39:21 -08:00
2015-05-19 15:27:42 +01:00
2016-11-07 18:15:21 +00:00
2014-11-28 10:24:59 +00:00
2016-10-03 08:58:35 -07:00
2015-10-12 17:46:36 +01:00
2014-07-10 11:06:00 +01:00
2016-08-25 18:00:29 +01:00
2016-12-26 13:05:17 -05:00
2016-11-07 18:15:21 +00:00
2016-09-09 11:42:27 +01:00