[llvm-bugs] [Bug 41987] New: Support more dynamic types

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 22 13:51:48 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41987

            Bug ID: 41987
           Summary: Support more dynamic types
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: beginner
          Severity: enhancement
          Priority: P
         Component: llvm-readobj
          Assignee: unassignedbugs at nondot.org
          Reporter: rupprecht at google.com
                CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org

llvm-readobj/llvm-readelf does not print names for all dynamic field types,
e.g.

$ readelf -d bin/clang | head

Dynamic section at offset 0x21078 contains 128 entries:
  Tag        Type                         Name/Value
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/../lib]
 0x0000000000000001 (NEEDED)             Shared library:
[libLLVMAArch64CodeGen.so.9svn]
...

$ llvm-readelf -d bin/clang | head
Dynamic section at offset 0x21078 contains 128 entries:
  Tag                Type                 Name/Value
  0x000000000000001d (RUNPATH)            $ORIGIN/../lib
  0x0000000000000001 (NEEDED)             Shared library:
[libLLVMAArch64CodeGen.so.9svn]
...

Note the missing "Library runpath:" for DT_RUNPATH.

Of course, that's just one example. The full list from GNU is here:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=binutils/readelf.c;h=c31a5c1266b7bb62a485895b01b49e1f832ade35;hb=HEAD#l9944

(Note: the above is using D62256 patched in to get GNU output)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190522/e762ba23/attachment.html>


More information about the llvm-bugs mailing list