summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2025-12-21 21:54:39 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-12-24 08:43:01 +0300
commit1e1edf4d6cd41f6539808c85cc5220f211a4206f (patch)
treee96be33e27c3e365b3906cff30b537093b7f3521 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parente6fa2e32689bd6b0de5908da89a3cfd31c806345 (diff)
downloadedk2-1e1edf4d6cd41f6539808c85cc5220f211a4206f.tar.xz
MdePkg/Library/BaseLib: Use PcdControlFlowEnforcementPropertyMask as fixed
Always access PcdControlFlowEnforcementPropertyMask using FixedPcdGet() in NASM source files and update INFs to correctly declare that PcdControlFlowEnforcementPropertyMask is always accessed as a Fixed PCD. PcdControlFlowEnforcementPropertyMask is declared in MdePkg.dec in the [PcdsFixedAtBuild] section, so this PCD does not support any other PCD access types. This change resolves ld warnings from GCC and CLANGDWARF builds for relocations in read-only text sections because use of PcdGet() in NASM source files reads the value into eax from the memory location of a const global variable that requires a relocation fixup. By changing PcdGet() to FixedPcdGet(), eax is loaded with an immediate value known at build time and no relocation fixups for PcdControlFlowEnforcementPropertyMask are required. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions