[PATCH 0/2] ArmVirtPkg EmbeddedPkg: fix build for CLANG35/ARM

Ard Biesheuvel

Currently, the ArmVirtQemuKernel and ArmVirtXen platforms will not build
for ARM when using CLANG35, due to the fact that the compiler emits
MOVT/MOVW pairs into objects that are used by the relocatable PrePi, and
such instruction pairs are not runtime relocatable in ELF (i.e., there are
no dynamic relocation types to describe them)

So fix this by selectively inhibiting the use of these pairs when building
these platforms for ARM using CLANG35

Ard Biesheuvel (2):
EmbeddedPkg: make PrePiMemoryAllocationLib a SEC type library
ArmVirtPkg ARM: make relocatable PrePi users build with CLANG35

ArmVirtPkg/ArmVirtQemuKernel.dsc | 8 ++++++++
ArmVirtPkg/ArmVirtXen.dsc | 9 +++++++++
EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)


Join devel@edk2.groups.io to automatically receive all group messages.