[edk2-devel] [PATCH v1 2/5] PrmPkg: Enable external visibility on PRM symbols

Sami Mujawar posted 5 patches 1 month, 3 weeks ago
[edk2-devel] [PATCH v1 2/5] PrmPkg: Enable external visibility on PRM symbols
Posted by Sami Mujawar 1 month, 3 weeks ago

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

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>
---
 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/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-