diff options
| author | Michael D Kinney <michael.d.kinney@intel.com> | 2025-12-21 21:54:39 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-12-24 08:43:01 +0300 |
| commit | 1e1edf4d6cd41f6539808c85cc5220f211a4206f (patch) | |
| tree | e96be33e27c3e365b3906cff30b537093b7f3521 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | e6fa2e32689bd6b0de5908da89a3cfd31c806345 (diff) | |
| download | edk2-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
