[llvm-bugs] [Bug 41293] New: Cannot run llvm-objcopy on stripped ELF

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 29 03:55:38 PDT 2019


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

            Bug ID: 41293
           Summary: Cannot run llvm-objcopy on stripped ELF
           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 --strip-sections is run on an ELF object, it strips the section headers, and
updates the ELF header accordingly. However, if you attempt to run llvm-objcopy
again on the same executable, you get the following error message:
c:\llvm\build\debug\bin\llvm-objcopy.exe: error: e_shstrndx field value 0 in
elf header  is invalid.

(Note also the extra space in the error message...)
The builder doesn't handle executables without a section header string table,
so we need to add support for this case.

-- 
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/20190329/7ef1cb40/attachment.html>


More information about the llvm-bugs mailing list