Files
edk2/PrmPkg/Include
Michael D Kinney c16e88e301 PrmPkg/Include: Fix GCC/CLANG PRM Module DLL Export issues
Use _MSC_EXTENSIONS instead of _MSC_VER when MSC specific
extensions are required such as __declspec(dllexport).
CLANGPDB builds do not set  _MSC_VER but CLANGPDB builds
in Windows and Linux do support use of MSC specific
extensions.

Add PRM_EXPORT_DESCRIPTOR macro that provides attributes
required to make sure the PRM Export Descriptor Structure
is not optimized away by the compiler/linker.
PRM_EXPORT_API can not be used for this because the
attributes for code and data may be different with
different tool chains.

For GCC/CLANGDWARF tool chains, PRM_EXPORT_DESCRIPTOR
sets the 'used' and 'section(.prmexportdescriptor)'
attributes and depends on the GCC linker script
to make sure the `.prmexportdescriptor` section is
preserved.

Fix incorrect location of ; in PRM_MODULE_EXPORT()
macro that was found by CLANG.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-10-17 06:23:17 +00:00
..
2022-04-05 00:42:38 +00:00
2022-04-05 00:42:38 +00:00
2022-04-05 00:42:38 +00:00
2022-04-05 00:42:38 +00:00