[llvm-bugs] [Bug 31273] New: lld produces a zero sized PT_LOAD

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 5 09:51:42 PST 2016


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

            Bug ID: 31273
           Summary: lld produces a zero sized PT_LOAD
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If passed just a file with an empty .text, lld produces a zero sized executable
PT_LOAD.

That is a problems because the freebsd dynamic linker will fail trying to mmap
it:

mmap(0x80022b000,0,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x1000)
ERR#22 'Invalid argument'

-- 
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/20161205/43e5cd8a/attachment.html>


More information about the llvm-bugs mailing list