Skip to content

Commit b1dd6c7

Browse files
committed
feat: Add 'no file type' to elf_types
1 parent eeaa577 commit b1dd6c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structures/elf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub fn parse_elf_header(elf_data: &[u8]) -> Result<ELFHeader, StructureError> {
5858
]);
5959

6060
let elf_types = HashMap::from([
61+
(0, "no file type"),
6162
(1, "relocatable"),
6263
(2, "executable"),
6364
(3, "shared object"),

0 commit comments

Comments
 (0)