Ver código fonte

PrmPkg: Enable external visibility on PRM symbols

Enable GCC compilations to keep external symbols when generating a PRM
module.

Signed-off-by: Jose Marinho <jose.marinho@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Jose Marinho 2 anos atrás
pai
commit
9f197e44b1
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      PrmPkg/Include/Prm.h

+ 3 - 0
PrmPkg/Include/Prm.h

@@ -3,6 +3,7 @@
   Common Platform Runtime Mechanism (PRM) definitions.
 
   Copyright (c) Microsoft Corporation
+  Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -15,6 +16,8 @@
 
 #if defined (_MSC_VER)
 #define PRM_EXPORT_API  __declspec(dllexport)
+#elif defined (__GNUC__)
+#define PRM_EXPORT_API  __attribute__ ((visibility ("default")))
 #else
 #define PRM_EXPORT_API
 #endif