diff options
Diffstat (limited to 'courgette/disassembler.cc')
-rw-r--r-- | courgette/disassembler.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/courgette/disassembler.cc b/courgette/disassembler.cc index 103bbe0..48227b3 100644 --- a/courgette/disassembler.cc +++ b/courgette/disassembler.cc @@ -13,6 +13,7 @@ #include "courgette/assembly_program.h" #include "courgette/courgette.h" +#include "courgette/disassembler_elf_32_arm.h" #include "courgette/disassembler_elf_32_x86.h" #include "courgette/disassembler_win32_x86.h" #include "courgette/encoded_program.h" @@ -40,6 +41,12 @@ Disassembler* DetectDisassembler(const void* buffer, size_t length) { else delete disassembler; + disassembler = new DisassemblerElf32ARM(buffer, length); + if (disassembler->ParseHeader()) + return disassembler; + else + delete disassembler; + return NULL; } |