summaryrefslogtreecommitdiff
path: root/PrmPkg/Include
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2022-04-05 18:53:25 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-08-08 22:43:51 +0000
commit9f197e44b102a8d7d457d2cb4f54967681c858a9 (patch)
tree8792470a4105cf3bd83ff8a38da1fd2ab830720f /PrmPkg/Include
parent1ee162281710650d444c554f9fdbbd404abd9677 (diff)
downloadedk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.zip
edk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.tar.gz
edk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.tar.bz2
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>
Diffstat (limited to 'PrmPkg/Include')
-rw-r--r--PrmPkg/Include/Prm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PrmPkg/Include/Prm.h b/PrmPkg/Include/Prm.h
index e290e53..007f734 100644
--- a/PrmPkg/Include/Prm.h
+++ b/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