pe-binary: add helper pe_is_addon() for detecting whether we are looking at PE EFI add-on

This commit is contained in:
Lennart Poettering
2024-09-12 10:02:15 +02:00
parent d258b1c60c
commit a8e912f01b
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -142,3 +142,4 @@ int pe_load_sections(int fd, const IMAGE_DOS_HEADER *dos_header, const PeHeader
int pe_read_section_data(int fd, const PeHeader *pe_header, const IMAGE_SECTION_HEADER *sections, const char *name, size_t max_size, void **ret, size_t *ret_size);
bool pe_is_uki(const PeHeader *pe_header, const IMAGE_SECTION_HEADER *sections);
bool pe_is_addon(const PeHeader *pe_header, const IMAGE_SECTION_HEADER *sections);