]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: efistub: replace adrl pseudo-op with adr_l macro invocation
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 09:28:01 +0000 (12:28 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:39 +0000 (17:05 +0100)
commit059d20c92707c85bb963ac7a440375c126069012
treec2c0b927c43ac88a2ca8f1c45068323c2fb2b0b4
parente6bec433a4155006cc4bfaf61633a9e3e03ad4fb
ARM: efistub: replace adrl pseudo-op with adr_l macro invocation

The ARM 'adrl' pseudo instruction is a bit problematic, as it does not
exist in Thumb mode, and it is not implemented by Clang either. Since
the Thumb variant has a slightly bigger range, it is sometimes necessary
to emit the 'adrl' variant in ARM mode where Thumb mode can use adr just
fine. However, that still leaves the Clang issue, which does not appear
to be supporting this any time soon.

So let's switch to the adr_l macro, which works for both ARM and Thumb,
and has unlimited range.

Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/boot/compressed/head.S