[llvm-bugs] [Bug 43342] New: Warn when PE file size is greater than 2GB

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 17 13:41:57 PDT 2019


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

            Bug ID: 43342
           Summary: Warn when PE file size is greater than 2GB
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvm-bugs at lists.llvm.org

LLD can produce large binaries that Windows will refuse to run. The error code
from CreateProcess in these cases is confusing. It would be nice if LLD would
warn when the output file size is large.

I think there are some cases (DWARF) when the PE file might be large and then
the resulting file might be stripped, so this probably can't be hard error, but
we should do something to make this use case easier to debug.

See https://bugs.chromium.org/p/chromium/issues/detail?id=1003624#c14 which
inspired this.

-- 
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/20190917/6297a579/attachment.html>


More information about the llvm-bugs mailing list