[llvm-bugs] [Bug 41901] New: Fix llvm-objdump -r behaviour for non relocatable objects

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 16 05:46:46 PDT 2019


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

            Bug ID: 41901
           Summary: Fix llvm-objdump -r behaviour for non relocatable
                    objects
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

GNU objdump behaviour in every version I have access to easily (v2.22, v2.24,
and v2.29), for -r on an executable/shared object is to print non-dynamic
relocation sections it finds (possibly also dynamic relocations, but I haven't
checked). llvm-objdump does not - see the following bit of code in
printRelocations:

  // Regular objdump doesn't print relocations in non-relocatable object
  // files.
  if (!Obj->isRelocatableObject())
    return;

I don't see why this behaviour exists. See also r263971, r263987 and r215844
for relevant revisions to do with this line. We should fix it.

-- 
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/20190516/99fbefee/attachment.html>


More information about the llvm-bugs mailing list