mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Print string value for DT_RPATH and DT_RUNPATH.
llvm-svn: 189829
This commit is contained in:
parent
b8f02e9d31
commit
930841271b
BIN
test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64
Normal file
BIN
test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64
Normal file
Binary file not shown.
4
test/tools/llvm-readobj/rpath.test
Normal file
4
test/tools/llvm-readobj/rpath.test
Normal 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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user