Skip to content

Commit

Permalink
OvmfPkg: Apply PcdImageLoaderRemoveXForWX
Browse files Browse the repository at this point in the history
  • Loading branch information
ocbuild committed Oct 29, 2023
1 parent 204318a commit 41be3d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OvmfPkg/OvmfPkgIa32.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x0
!endif

# Fix incorrect W^X permissions at load time.
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRemoveXForWX|TRUE

################################################################################
#
# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
Expand Down
3 changes: 3 additions & 0 deletions OvmfPkg/OvmfPkgIa32X64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@
gEfiMdePkgTokenSpaceGuid.PcdControlFlowEnforcementPropertyMask|0x1
gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000003

# Fix incorrect W^X permissions at load time.
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRemoveXForWX|TRUE

[PcdsFixedAtBuild.IA32]
#
# The NumberOfPages values below are ad-hoc. They are updated sporadically at
Expand Down
3 changes: 3 additions & 0 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderAllowMisalignedOffset|TRUE
!endif

# Fix incorrect W^X permissions at load time.
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRemoveXForWX|TRUE

################################################################################
#
# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
Expand Down

0 comments on commit 41be3d3

Please sign in to comment.