diff options
author | Jose Marinho <jose.marinho@arm.com> | 2022-04-05 18:53:25 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-08-08 22:43:51 +0000 |
commit | 9f197e44b102a8d7d457d2cb4f54967681c858a9 (patch) | |
tree | 8792470a4105cf3bd83ff8a38da1fd2ab830720f /PrmPkg | |
parent | 1ee162281710650d444c554f9fdbbd404abd9677 (diff) | |
download | edk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.tar.gz edk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.tar.bz2 edk2-9f197e44b102a8d7d457d2cb4f54967681c858a9.zip |
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')
-rw-r--r-- | PrmPkg/Include/Prm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PrmPkg/Include/Prm.h b/PrmPkg/Include/Prm.h index e290e53510..007f73416a 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
|