[llvm-bugs] [Bug 38397] New: lld ignores /subsystem argument
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Tue Jul 31 17:12:27 PDT 2018
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=38397
            Bug ID: 38397
           Summary: lld ignores /subsystem argument
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: brucedawson at chromium.org
                CC: llvm-bugs at lists.llvm.org
When building test_process.exe in chrome (as of
ec4400b28a913290681684212c9dfccb5ea103ed, July 31, 2018) the command-line
passed to the linker contains /SUBSYSTEM:CONSOLE,5.02 but test_process_main.cc
contains this entry point:
int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int)
link.exe honors the command-line switch and gives a link error. lld seems to
ignore the command-line switch and generates a binary. It is not clear whether
it looks at the Windows version information in the /SUBSYSTEM switch.
This was reported in crbug.com/869503.
The consequences of this difference of behavior is that binaries that build
with lld-link.exe may fail to link with link.exe and these failures will be
mysterious. It also suggests that if two entry points are compiled in and one
is chosen using the /SUBSYSTEM flag then that may fail with lld.
This is not a critical bug but it should be fixed in order to avoid confusing
incompatibilities.
-- 
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/20180801/e8ddc577/attachment-0001.html>
    
    
More information about the llvm-bugs
mailing list