diff options
| author | Peter Jones <pjones@redhat.com> | 2015-04-13 19:55:25 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-04-13 19:55:25 -0400 |
| commit | 96cf3c015c3a296e53d1d5901efaf889bf83d00d (patch) | |
| tree | c542b2b0ba991886330c7706dc73850d692a32a5 /include/PeImage.h | |
| parent | ed4c5dbc84c6baa6fc1ae0ea24b878df5bc81fa2 (diff) | |
| download | efi-boot-shim-96cf3c015c3a296e53d1d5901efaf889bf83d00d.tar.gz efi-boot-shim-96cf3c015c3a296e53d1d5901efaf889bf83d00d.zip | |
Align the sections we're loading, and check for validity /after/ discarding.
Turns out a) the codegen on aarch64 generates code that has real
alignment needs, and b) if we check the length of discardable sections
before discarding them, we error for no reason.
So do the error checking in the right order, and always enforce some
alignment because we know we have to.
Signed-off-by: Peter Jones <pjones@redhat.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 133e11e6..05f32ea2 100644 --- a/include/PeImage.h +++ b/include/PeImage.h @@ -778,6 +778,7 @@ typedef struct { UINTN SizeOfHeaders;
UINT16 ImageType;
UINT16 NumberOfSections;
+ UINT32 SectionAlignment;
EFI_IMAGE_SECTION_HEADER *FirstSection;
EFI_IMAGE_DATA_DIRECTORY *RelocDir;
EFI_IMAGE_DATA_DIRECTORY *SecDir;
|
