[llvm-bugs] [Bug 33551] Extra PT_LOAD phdr emitted with content of ELF header and PT_PHDR segment

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 12 03:08:33 PST 2018


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

George Rimar <grimar at accesssoftek.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grimar at accesssoftek.com
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from George Rimar <grimar at accesssoftek.com> ---
LLD 8.0.0 (trunk 348589) does not do this anymore:

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000001000 0x0000000000002000 0x0000000000100000
                 0x0000000000000001 0x0000000000000001  R E    0x1000
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0x0

We have a code that fixes exactly such cases, so I am closing this:
https://github.com/llvm-mirror/lld/blob/master/ELF/ScriptParser.cpp#L534

-- 
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/20181212/57af0e9a/attachment.html>


More information about the llvm-bugs mailing list