[llvm-bugs] [Bug 41371] New: llvm-objcopy does not check dynamic relocation sections for broken references

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 4 04:09:33 PDT 2019


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

            Bug ID: 41371
           Summary: llvm-objcopy does not check dynamic relocation
                    sections for broken references
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com

If you strip a section that is referred to by a dynamic relocation section
(e.g. the .dynsym), llvm-objcopy lets it happen assuming that there are no
other references. This means that the Link and/or Info field is broken, as
potentially are the relocations themselves. The problem is that the
removeSectionReferences method is not defined for DynamicRelocationSection.

-- 
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/20190404/764846d5/attachment.html>


More information about the llvm-bugs mailing list