From: Jose Marinho <jose.mari...@arm.com>

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

Signed-off-by: Jose Marinho <jose.mari...@arm.com>
Signed-off-by: Sami Mujawar <sami.muja...@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/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to