Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 1e1edf4d6cd41f6539808c85cc5220f211a4206f
      
https://github.com/tianocore/edk2/commit/1e1edf4d6cd41f6539808c85cc5220f211a4206f
  Author: Michael D Kinney <[email protected]>
  Date:   2025-12-24 (Wed, 24 Dec 2025)

  Changed paths:
    M MdePkg/Library/BaseLib/BaseLib.inf
    M MdePkg/Library/BaseLib/Ia32/LongJump.nasm
    M MdePkg/Library/BaseLib/Ia32/SetJump.nasm
    M MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
    M MdePkg/Library/BaseLib/X64/LongJump.nasm
    M MdePkg/Library/BaseLib/X64/SetJump.nasm

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to