]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Core/StandaloneMmCore.inf
StandaloneMmPkg: generate position independent code for StMM core
[mirror_edk2.git] / StandaloneMmPkg / Core / StandaloneMmCore.inf
index ff2b8b9cef031fae4f780230a4fffb6cb1bcfb77..87bf6e9440a77b3c737a439be07896e2fcb406a2 100644 (file)
@@ -4,12 +4,7 @@
 # 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
@@ -49,6 +44,7 @@
   BaseMemoryLib\r
   CacheMaintenanceLib\r
   DebugLib\r
+  ExtractGuidedSectionLib\r
   FvLib\r
   HobLib\r
   MemoryAllocationLib\r
   gEdkiiMemoryProfileGuid\r
   gZeroGuid                                     ## SOMETIMES_CONSUMES   ## GUID\r
   gEfiHobListGuid\r
+  gEfiHobMemoryAllocModuleGuid\r
   gMmCoreDataHobGuid\r
   gMmFvDispatchGuid\r
   gEfiEventLegacyBootGuid\r
   gEfiEventExitBootServicesGuid\r
   gEfiEventReadyToBootGuid\r
+\r
+[BuildOptions]\r
+  GCC:*_*_*_CC_FLAGS = -fpie\r
+  GCC:*_*_*_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r