[llvm-readobj] Dump DT_RELACOUNT correctly.

llvm-svn: 257988
This commit is contained in:
Davide Italiano 2016-01-16 06:06:36 +00:00
parent 6ed987dffe
commit 8c50367276
3 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ CHECK: 0x0000000000000009 RELAENT 24 (bytes)
CHECK: 0x000000006FFFFFFE VERNEED 0x3A8
CHECK: 0x000000006FFFFFFF VERNEEDNUM 1
CHECK: 0x000000006FFFFFF0 VERSYM 0x38C
CHECK: 0x000000006FFFFFF9 unknown 0x3
CHECK: 0x000000006FFFFFF9 RELACOUNT 3
CHECK: 0x0000000000000000 NULL 0x0
CHECK: ]
CHECK: HashTable {

View File

@ -145,6 +145,6 @@ ELF-AARCH64-SO: 0x0000000000000009 RELAENT 24 (bytes)
ELF-AARCH64-SO: 0x000000006FFFFFFE VERNEED 0x520
ELF-AARCH64-SO: 0x000000006FFFFFFF VERNEEDNUM 1
ELF-AARCH64-SO: 0x000000006FFFFFF0 VERSYM 0x4F2
ELF-AARCH64-SO: 0x000000006FFFFFF9 unknown 0x3
ELF-AARCH64-SO: 0x000000006FFFFFF9 RELACOUNT 3
ELF-AARCH64-SO: 0x0000000000000000 NULL 0x0
ELF-AARCH64-SO: ]

View File

@ -1336,6 +1336,7 @@ static const char *getTypeString(uint64_t Type) {
LLVM_READOBJ_TYPE_CASE(VERNEED);
LLVM_READOBJ_TYPE_CASE(VERNEEDNUM);
LLVM_READOBJ_TYPE_CASE(VERSYM);
LLVM_READOBJ_TYPE_CASE(RELACOUNT);
LLVM_READOBJ_TYPE_CASE(RELCOUNT);
LLVM_READOBJ_TYPE_CASE(GNU_HASH);
LLVM_READOBJ_TYPE_CASE(TLSDESC_PLT);
@ -1482,6 +1483,7 @@ void ELFDumper<ELFT>::printValue(uint64_t Type, uint64_t Value) {
case DT_MIPS_OPTIONS:
OS << format("0x%" PRIX64, Value);
break;
case DT_RELACOUNT:
case DT_RELCOUNT:
case DT_VERDEFNUM:
case DT_VERNEEDNUM: