##// END OF EJS Templates
Redefining news constants for old libelf.
Jeandet Alexis -
r9:7ee2d5f15b0f default
parent child
Show More
@@ -381,26 +381,30 QString elfresolveMachine(Elf64_Half e_m
381 381 case EM_XTENSA:
382 382 machineName = " Tensilica Xtensa Architecture ";
383 383 break;
384 #ifdef EM_AARCH64
384 #ifndef EM_AARCH64
385 #define EM_AARCH64 183
386 #endif
385 387 case EM_AARCH64:
386 388 machineName = " ARM AARCH64 ";
387 389 break;
390 #ifndef EM_TILEPRO
391 #define EM_TILEPRO 188
388 392 #endif
389 #ifdef EM_TILEPRO
390 393 case EM_TILEPRO:
391 394 machineName = " Tilera TILEPro ";
392 395 break;
396 #ifndef EM_MICROBLAZE
397 #define EM_MICROBLAZE 189
393 398 #endif
394 #ifdef EM_MICROBLAZE
395 399 case EM_MICROBLAZE:
396 400 machineName = " Xilinx MicroBlaze ";
397 401 break;
402 #ifndef EM_TILEGX
403 #define EM_TILEGX 191
398 404 #endif
399 #ifdef EM_TILEGX
400 405 case EM_TILEGX:
401 406 machineName = " Tilera TILE-Gx ";
402 407 break;
403 #endif
404 408 case EM_NUM:
405 409 machineName = "";
406 410 break;
@@ -497,9 +501,10 QString ElfFile::getABI()
497 501 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
498 502 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
499 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 507 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
502 #endif
503 508 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
504 509 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application";
505 510 }
@@ -163,9 +163,10 QString elfparser::getABI()
163 163 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
164 164 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
165 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 169 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
168 #endif
169 170 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
170 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