audk/MdeModulePkg/Core/Dxe/Misc
Ard Biesheuvel a2ed40c02b MdeModulePkg/DxeCore: base code protection on permission attributes
Instead of assuming that a PE/COFF section of type EFI_IMAGE_SCN_CNT_CODE
can always be mapped read-only, classify a section as a code section only
if it has the executable attribute set and the writable attribute cleared.

This adheres more closely to the PE/COFF spec, and avoids issues with
Linux OS loaders that may consist of a single read/write/execute section.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2017-02-26 13:50:21 +00:00
..
DebugImageInfo.c
InstallConfigurationTable.c
MemoryAttributesTable.c MdeModulePkg-DxeCore: rename CoreGetMemoryMapPropertiesTable 2016-05-16 08:53:37 +08:00
MemoryProtection.c MdeModulePkg/DxeCore: base code protection on permission attributes 2017-02-26 13:50:21 +00:00
PropertiesTable.c MdeModulePkg/DxeCore: Add UEFI image protection. 2017-02-22 14:07:04 +08:00
SetWatchdogTimer.c
Stall.c MdeModulePkg/Stall: Refine to compare 2 values with the same type 2017-01-12 21:26:27 +08:00