[llvm-readobj] Dump DT_RELACOUNT correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Davide Italiano 2016-01-16 06:06:36 +00:00
parent 2c3ac29b7f
commit bac7fb4eb0
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: