]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg RVCT: add ADRL/LDRL macro equivalents
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 28 Oct 2016 11:36:19 +0000 (12:36 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 28 Oct 2016 15:26:15 +0000 (16:26 +0100)
commit4101c8753f4dfcb489afcba6d7dd20216545c417
tree299065c94e3535f522d527987acdb45ee905531c
parentc44f9a42d4a564cb04372389276cd48c05ad9914
ArmPkg RVCT: add ADRL/LDRL macro equivalents

The GCC ARM builds have access to ADRL/LDRL macros that emit relative
symbol references, i.e., references that do not require fixing up at
load time (or FV generation time for XIP modules)

Implement equivalent functionality for RVCT: note that this does not
use movw/movt pairs, but the more compatible add/add/add or add/add/ldr
sequences (which Clang does not support, unfortunately, hence the use
of movw/movt for the GCC toolchain family)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Include/AsmMacroIoLib.inc