]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/PeCoffLoader: fix handling of ARM MOVW/MOVT instruction relocs
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 9 Oct 2015 18:55:41 +0000 (18:55 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Fri, 9 Oct 2015 18:55:41 +0000 (18:55 +0000)
commit485b3066542c1278ec32b60a9c905000721256ce
tree8e7578e952bc09178a722ee5316df559acae4657
parent94762ddef67f8805f4a3aef86e73dc27f234eb71
MdePkg/PeCoffLoader: fix handling of ARM MOVW/MOVT instruction relocs

Advance the *FixupData pointer after use in the second relocation pass
for runtime when handling ARM MOVW/MOVT immediate relocations.

Note that using FixupData is somewhat pointless for relocations targeting
instructions rather than data items, since the program cannot typically
modify its own instructions, and the second pass should be performed
unconditionally. But let's just fix it for now.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18597 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c