Ard Biesheuvel 29589ca09a ARM: 9208/1: entry: add .ltorg directive to keep literals in range
LKP reports a build issue on Clang, related to a literal load of
__current issued through the ldr_va macro. This turns out to be due to
the fact that group relocations are disabled when CONFIG_COMPILE_TEST=y,
which means that the ldr_va macro resolves to a pair of LDR
instructions, the first one being a literal load issued too far from its
literal pool.

Due to the introduction of a couple of new uses of this macro in commit
508074607c7b95b2 ("ARM: 9195/1: entry: avoid explicit literal loads"),
the literal pools end up getting rearranged in a way that causes the
literal for __current to go out of range. Let's fix this up by putting a
.ltorg directive in a suitable place in the code.

Link: https://lore.kernel.org/all/202205290805.1vZLAr36-lkp@intel.com/

Fixes: 508074607c7b95b2 ("ARM: 9195/1: entry: avoid explicit literal loads")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
2022-07-14 13:19:51 +01:00
..
2021-10-20 13:36:30 -05:00
2021-12-06 12:49:11 +01:00
2022-02-21 14:56:53 +00:00
2022-03-23 17:35:57 -07:00
2020-02-11 12:56:27 +01:00
2022-05-19 19:30:30 +02:00
2022-04-03 10:17:48 -07:00
2022-03-23 17:35:57 -07:00
2022-04-03 10:17:48 -07:00
2020-10-30 21:57:05 +01:00
2022-03-23 18:03:08 -07:00
2020-12-15 12:13:41 -08:00