Print string value for DT_RPATH and DT_RUNPATH.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2013-09-03 17:13:53 +00:00
parent 06ef1ed260
commit 6217187ff2
3 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,4 @@
RUN: llvm-readobj -dynamic-table %p/Inputs/rpath.exe.elf-x86_64 \
RUN: | FileCheck %s
CHECK: 0x000000000000000F RPATH /usr/local/lib

View File

@ -723,6 +723,10 @@ static void printValue(const ELFFile<ELFT> *O, uint64_t Type, uint64_t Value,
case DT_SONAME:
OS << "LibrarySoname (" << O->getDynamicString(Value) << ")";
break;
case DT_RPATH:
case DT_RUNPATH:
OS << O->getDynamicString(Value);
break;
}
}