[edk2-devel] [PATCH v1 2/5] PrmPkg: Enable external visibility on PRM symbols
Sami Mujawar
sami.mujawar at arm.com
Wed Aug 3 14:35:44 UTC 2022
From: Jose Marinho <jose.marinho at arm.com>
Enable GCC compilations to keep external symbols when generating a PRM
module.
Signed-off-by: Jose Marinho <jose.marinho at arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar at arm.com>
---
PrmPkg/Include/Prm.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/PrmPkg/Include/Prm.h b/PrmPkg/Include/Prm.h
index e290e53510f05908000935eaa486cabd7856b645..007f73416aac84139782b7cdd1125a6ba85aef9d 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
--
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92088): https://edk2.groups.io/g/devel/message/92088
Mute This Topic: https://groups.io/mt/92793390/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list