diff options
| author | Dennis Tseng <dennis.tseng@suse.com> | 2023-04-28 10:47:33 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-18 10:47:34 -0500 |
| commit | 7cde2cc52f19f733de7855419d1c43a13a8d6c5f (patch) | |
| tree | 61fb60d9840b194fb5d528c296b2877aa40354aa /include/peimage.h | |
| parent | 301cf52f189cc13295cf91aae508e2fd94ed4456 (diff) | |
| download | efi-boot-shim-7cde2cc52f19f733de7855419d1c43a13a8d6c5f.tar.gz efi-boot-shim-7cde2cc52f19f733de7855419d1c43a13a8d6c5f.zip | |
post-process-pe: add tests to validate NX compliance
This changes post-process-pe to give warnings, and optionally errors, if
a shim binary is built with Section Alignment or characteristics are not
compatible with NX, or if the EFI_IMAGE_DLLCHARACTERISTICS_NX_COMPAT
flag is not set and require_nx_compat is true.
Co-authored-by: Peter Jones <pjones@redhat.com>
Co-authored-by: Kamil Aronowski <kamil.aronowski@yahoo.com>
Signed-off-by: Dennis Tseng <dennis.tseng@suse.com>
Diffstat (limited to 'include/peimage.h')
| -rw-r--r-- | include/peimage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/peimage.h b/include/peimage.h index 6eef1051..4182a17b 100644 --- a/include/peimage.h +++ b/include/peimage.h @@ -824,6 +824,7 @@ typedef struct { EFI_IMAGE_DATA_DIRECTORY *RelocDir;
EFI_IMAGE_DATA_DIRECTORY *SecDir;
UINT64 NumberOfRvaAndSizes;
+ UINT16 DllCharacteristics;
EFI_IMAGE_OPTIONAL_HEADER_UNION *PEHdr;
} PE_COFF_LOADER_IMAGE_CONTEXT;
|
