[llvm] r257988 - [llvm-readobj] Dump DT_RELACOUNT correctly.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 22:06:37 PST 2016
Author: davide
Date: Sat Jan 16 00:06:36 2016
New Revision: 257988
URL: http://llvm.org/viewvc/llvm-project?rev=257988&view=rev
Log:
[llvm-readobj] Dump DT_RELACOUNT correctly.
Modified:
llvm/trunk/test/Object/no-section-table.test
llvm/trunk/test/tools/llvm-readobj/dynamic.test
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/test/Object/no-section-table.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/no-section-table.test?rev=257988&r1=257987&r2=257988&view=diff
==============================================================================
--- llvm/trunk/test/Object/no-section-table.test (original)
+++ llvm/trunk/test/Object/no-section-table.test Sat Jan 16 00:06:36 2016
@@ -25,7 +25,7 @@ CHECK: 0x0000000000000009 RELAENT
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 {
Modified: llvm/trunk/test/tools/llvm-readobj/dynamic.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/dynamic.test?rev=257988&r1=257987&r2=257988&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-readobj/dynamic.test (original)
+++ llvm/trunk/test/tools/llvm-readobj/dynamic.test Sat Jan 16 00:06:36 2016
@@ -145,6 +145,6 @@ ELF-AARCH64-SO: 0x0000000000000009 REL
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: ]
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=257988&r1=257987&r2=257988&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Sat Jan 16 00:06:36 2016
@@ -1336,6 +1336,7 @@ static const char *getTypeString(uint64_
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_
case DT_MIPS_OPTIONS:
OS << format("0x%" PRIX64, Value);
break;
+ case DT_RELACOUNT:
case DT_RELCOUNT:
case DT_VERDEFNUM:
case DT_VERNEEDNUM:
More information about the llvm-commits
mailing list