@@ -381,26 +381,30 QString elfresolveMachine(Elf64_Half e_m | |||||
381 | case EM_XTENSA: |
|
381 | case EM_XTENSA: | |
382 | machineName = " Tensilica Xtensa Architecture "; |
|
382 | machineName = " Tensilica Xtensa Architecture "; | |
383 | break; |
|
383 | break; | |
384 | #ifdef EM_AARCH64 |
|
384 | #ifndef EM_AARCH64 | |
|
385 | #define EM_AARCH64 183 | |||
|
386 | #endif | |||
385 | case EM_AARCH64: |
|
387 | case EM_AARCH64: | |
386 | machineName = " ARM AARCH64 "; |
|
388 | machineName = " ARM AARCH64 "; | |
387 | break; |
|
389 | break; | |
|
390 | #ifndef EM_TILEPRO | |||
|
391 | #define EM_TILEPRO 188 | |||
388 | #endif |
|
392 | #endif | |
389 | #ifdef EM_TILEPRO |
|
|||
390 | case EM_TILEPRO: |
|
393 | case EM_TILEPRO: | |
391 | machineName = " Tilera TILEPro "; |
|
394 | machineName = " Tilera TILEPro "; | |
392 | break; |
|
395 | break; | |
|
396 | #ifndef EM_MICROBLAZE | |||
|
397 | #define EM_MICROBLAZE 189 | |||
393 | #endif |
|
398 | #endif | |
394 | #ifdef EM_MICROBLAZE |
|
|||
395 | case EM_MICROBLAZE: |
|
399 | case EM_MICROBLAZE: | |
396 | machineName = " Xilinx MicroBlaze "; |
|
400 | machineName = " Xilinx MicroBlaze "; | |
397 | break; |
|
401 | break; | |
|
402 | #ifndef EM_TILEGX | |||
|
403 | #define EM_TILEGX 191 | |||
398 | #endif |
|
404 | #endif | |
399 | #ifdef EM_TILEGX |
|
|||
400 | case EM_TILEGX: |
|
405 | case EM_TILEGX: | |
401 | machineName = " Tilera TILE-Gx "; |
|
406 | machineName = " Tilera TILE-Gx "; | |
402 | break; |
|
407 | break; | |
403 | #endif |
|
|||
404 | case EM_NUM: |
|
408 | case EM_NUM: | |
405 | machineName = ""; |
|
409 | machineName = ""; | |
406 | break; |
|
410 | break; | |
@@ -497,9 +501,10 QString ElfFile::getABI() | |||||
497 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; |
|
501 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; | |
498 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; |
|
502 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; | |
499 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; |
|
503 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; | |
500 | #ifdef ELFOSABI_ARM_AEABI |
|
504 | #ifndef ELFOSABI_ARM_AEABI | |
|
505 | #define ELFOSABI_ARM_AEABI 64 | |||
|
506 | #endif | |||
501 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; |
|
507 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; | |
502 | #endif |
|
|||
503 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; |
|
508 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; | |
504 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; |
|
509 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; | |
505 | } |
|
510 | } |
@@ -163,9 +163,10 QString elfparser::getABI() | |||||
163 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; |
|
163 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; | |
164 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; |
|
164 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; | |
165 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; |
|
165 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; | |
166 | #ifdef ELFOSABI_ARM_AEABI |
|
166 | #ifndef ELFOSABI_ARM_AEABI | |
|
167 | #define ELFOSABI_ARM_AEABI 64 | |||
|
168 | #endif | |||
167 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; |
|
169 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; | |
168 | #endif |
|
|||
169 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; |
|
170 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; | |
170 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; |
|
171 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; | |
171 | } |
|
172 | } |
General Comments 0
You need to be logged in to leave comments.
Login now