# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
# Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
##\r
\r
PI_SPECIFICATION_VERSION = 0x00010032\r
ENTRY_POINT = StandaloneMmMain\r
\r
-# VALID_ARCHITECTURES = IA32 X64 AARCH64\r
+# VALID_ARCHITECTURES = IA32 X64 AARCH64 ARM\r
\r
[Sources]\r
StandaloneMmCore.c\r
gEdkiiMemoryProfileGuid\r
gZeroGuid ## SOMETIMES_CONSUMES ## GUID\r
gEfiHobListGuid\r
+ gEfiHobMemoryAllocModuleGuid\r
gMmCoreDataHobGuid\r
gMmFvDispatchGuid\r
gEfiEventLegacyBootGuid\r
gEfiEventExitBootServicesGuid\r
gEfiEventReadyToBootGuid\r
+\r
+#\r
+# This configuration fails for CLANGPDB, which does not support PIE in the GCC\r
+# sense. Such however is required for ARM family StandaloneMmCore\r
+# self-relocation, and thus the CLANGPDB toolchain is unsupported for ARM and\r
+# AARCH64 for this module.\r
+#\r
+[BuildOptions]\r
+ GCC:*_*_ARM_CC_FLAGS = -fpie\r
+ GCC:*_*_ARM_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r
+ GCC:*_*_AARCH64_CC_FLAGS = -fpie\r
+ GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r