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: unassignedb...@nondot.org
          Reporter: rafael.espind...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to