Print string value for DT_RPATH and DT_RUNPATH.

llvm-svn: 189829
This commit is contained in:
Joerg Sonnenberger 2013-09-03 17:13:53 +00:00
parent d2f4079db9
commit ce91d01a1b
3 changed files with 8 additions and 0 deletions

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;
}
}