[llvm-bugs] [Bug 41045] New: ELF incorrect size following --strip-sections

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 12 09:23:32 PDT 2019


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

            Bug ID: 41045
           Summary: ELF incorrect size following --strip-sections
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy
          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

--strip-sections should leave an ELF with only its ELF header and program
header contents. The ELFWriter<ELFT>::totalSize() function incorrectly
calculates the size of the ELF however in this case: if WriteSectionHeaders is
false, it includes enough space to write the section headers (but not the null
section header for some reason...!)

-- 
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/20190312/0aacdd16/attachment.html>


More information about the llvm-bugs mailing list