From 6217187ff202cb919257abc32782faa35c29f5d9 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 3 Sep 2013 17:13:53 +0000 Subject: [PATCH] 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 --- .../llvm-readobj/Inputs/rpath.exe.elf-x86_64 | Bin 0 -> 5632 bytes test/tools/llvm-readobj/rpath.test | 4 ++++ tools/llvm-readobj/ELFDumper.cpp | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64 create mode 100644 test/tools/llvm-readobj/rpath.test diff --git a/test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64 b/test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64 new file mode 100644 index 0000000000000000000000000000000000000000..8c01c502cf861e8f646cd252bc037294dd187965 GIT binary patch literal 5632 zcmeHLO>War5T2xzp8_K7hAxm`!!nM9s?aV#ZcqY?NL`Rc7f8lwOk>IUk?o>n1Q5% zxoT$ksGhk%YGl6XWUuh4;flw;Yv95~b&^i@d8!*gUx0HJ0`YvUC>*x8TG6N(h0~)& zbFtlSwzr&Q<~%V9NvA0_Lj|;slDHMk4*W<`n!QNmLi>eYoTzV}k?$X?zou#Rap<=C zn~L`oue2A9wO~77J77CtJ77CtJ77CtJ77CtJ77CtJMbTNzzL^m5YNdO`^lJ`(Q=wB zCmE(OIccy+jpt9o19A>$sWXp+@l&6iVUm!OjFU7@{UKY+NrsvKr*6o3bAwOvI7cH^ z&d-efl<}?y76!hTb zy^!3{V-9pus?Q;2DGiq%vLzhmMtC1F@5%$!z`nshRxRq6^_Yu6hy9~34(p{p`jfxM z2tXl4=s`ba<8SoX2lUU_kepYoU)FbuS|k *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; } }