BaseTools/Scripts: KEEP .prmexportdescriptor data sections

Update GCC linker script to always keep .prmexportdescriptor
sections and merge them into the .data section.

The .prmexportdescriptor section is only used by PRM modules
for the PRM Export Descriptor Structure that must be kept
in the final image to support adding the PRM Export
Descriptor Structure and its associated PRM Handlers APIs
to a PE/COFF DLL Export section.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney 2025-10-02 15:57:50 -07:00 committed by mergify[bot]
parent 47b0261613
commit 3980808abf

View file

@ -52,6 +52,7 @@ SECTIONS {
.data ALIGN(ALIGNOF(.text)) : ALIGN(CONSTANT(COMMONPAGESIZE)) {
*(.data .data.* .gnu.linkonce.d.*)
*(.bss .bss.*)
KEEP(*(.prmexportdescriptor))
} :data
.eh_frame ALIGN(CONSTANT(COMMONPAGESIZE)) : {