forked from OSchip/llvm-project
[llvm-readobj] Dump hash as part of -version-info.
llvm-svn: 268210
This commit is contained in:
parent
e3c1e225d7
commit
22b3ad8630
|
@ -59,6 +59,7 @@ CHECK-NEXT: Rev: 1
|
|||
CHECK-NEXT: Flags: 1
|
||||
CHECK-NEXT: Index: 1
|
||||
CHECK-NEXT: Cnt: 1
|
||||
CHECK-NEXT: Hash: 430712
|
||||
CHECK-NEXT: Name: blah
|
||||
CHECK-NEXT: }
|
||||
CHECK-NEXT: Entry {
|
||||
|
@ -67,6 +68,7 @@ CHECK-NEXT: Rev: 1
|
|||
CHECK-NEXT: Flags: 0
|
||||
CHECK-NEXT: Index: 2
|
||||
CHECK-NEXT: Cnt: 1
|
||||
CHECK-NEXT: Hash: 175630257
|
||||
CHECK-NEXT: Name: VERSION1
|
||||
CHECK-NEXT: }
|
||||
CHECK-NEXT: Entry {
|
||||
|
@ -75,6 +77,7 @@ CHECK-NEXT: Rev: 1
|
|||
CHECK-NEXT: Flags: 0
|
||||
CHECK-NEXT: Index: 3
|
||||
CHECK-NEXT: Cnt: 2
|
||||
CHECK-NEXT: Hash: 175630258
|
||||
CHECK-NEXT: Name: VERSION2
|
||||
CHECK-NEXT: }
|
||||
CHECK-NEXT: ]
|
||||
|
|
|
@ -561,6 +561,7 @@ static void printVersionDefinitionSection(ELFDumper<ELFT> *Dumper,
|
|||
W.printNumber("Flags", VD->vd_flags);
|
||||
W.printNumber("Index", VD->vd_ndx);
|
||||
W.printNumber("Cnt", VD->vd_cnt);
|
||||
W.printNumber("Hash", VD->vd_hash);
|
||||
W.printString("Name",
|
||||
StringRef((const char *)(Obj->base() + StrTab->sh_offset +
|
||||
VD->getAux()->vda_name)));
|
||||
|
|
Loading…
Reference in New Issue