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: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected],
                    [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to