summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2025-10-03 02:09:38 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-10-17 09:23:17 +0300
commitc16e88e301d659a962880a898d72b17c5010f2e0 (patch)
tree84dee8356a83523f6daaba103661a28a3f0858dd /MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c
parent3980808abf4599ce601fd39ea70bc1f4385172af (diff)
downloadedk2-c16e88e301d659a962880a898d72b17c5010f2e0.tar.xz
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>
Diffstat (limited to 'MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c')
0 files changed, 0 insertions, 0 deletions