]> git.proxmox.com Git - mirror_edk2.git/commit
StandaloneMmPkg: Support CLANGPDB builds
authorMarvin Häuser <mhaeuser@posteo.de>
Thu, 14 Oct 2021 19:05:48 +0000 (19:05 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 18 Oct 2021 13:32:39 +0000 (13:32 +0000)
commit210869834639c1150b1f016e2022472a55cdd884
treee687d5eb3340e3b699934542bf56ddde5046c26a
parentf10a112f08f3fb4a92c3d22f069f6066a12db3be
StandaloneMmPkg: Support CLANGPDB builds

Currently, the flag "-fpie" is passed for all builds with a GCC
family toolchain, including CLANGPDB. CLANGPDB however does not
support this flag as it generates PE/COFF files directly.

As the flag is mostly required for ARM-specific self-relocation, drop
it for other architectures and document the limitation to enable e.g.
X64 CLANGPDB builds of StandaloneMmCore.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
Acked-by: Shi Steven <steven.shi@intel.com>
StandaloneMmPkg/Core/StandaloneMmCore.inf
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf