patterns: Handle application/x-sharedlib mime-type as ELF binary (#13)

* Fix : Added pragma for multiple PE MIME types.

* Use magic db instead of application/octet-stream MIME-type.

* Fix: handles shared libs mime type as ELF format

* Updates README.md for new ELF mime-type
This commit is contained in:
ThisALV
2021-04-20 21:52:13 +02:00
committed by GitHub
parent 38a26771a2
commit 72ea939745
2 changed files with 3 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ Hex patterns, include patterns and magic files for the use with the ImHex Hex Ed
| Name | MIME | Path | Description |
|------|------|------|-------------|
| BMP | `image/bmp` | `patterns/bmp.hexpat` | OS2/Windows Bitmap files |
| ELF | `application/x-executable` | `patterns/elf.hexpat` | ELF header in elf binaries |
| ELF | `application/x-executable`, `application/x-sharedlib` | `patterns/elf.hexpat` | ELF header in elf binaries |
| PE | `application/x-dosexec` | `patterns/pe.hexpat` | PE header, COFF header, Standard COFF fields and Windows Specific fields |
| MIDI | `audio/midi` | `patterns/midi.hexpat` | MIDI header, event fields provided |
| WAV | `audio/wav` | `patterns/wav.hexpat` | RIFF header, WAVE header, PCM header |
@@ -26,6 +26,7 @@ Hex patterns, include patterns and magic files for the use with the ImHex Hex Ed
| Name | Path | Description |
|------|------|-------------|
| Nintendo Switch | `magic/nintendo_switch_magic` | Identifies common file types used on the Nintendo Switch |
| Portable Executable | `magic/portable_executable_magic` | Identifies PE files used on Windows
## Contributing

View File

@@ -1,4 +1,5 @@
#pragma MIME application/x-executable
#pragma MIME application/x-sharedlib
#define EI_NIDENT 16