Skip to content
  • Rui Ueyama's avatar
    COFF: Fix logic to find default entry name or subsystem. · 45044f47
    Rui Ueyama authored
    The previous logic to find default entry name or subsystem does not
    seem correct (i.e. was not compatible with MSVC linker). Previously,
    default entry name was inferred from CRT functions and user-defined
    entry functions. Subsystem was inferred from CRT functions.
    
    Default entry name and subsystem are now inferred based on the
    following table. Note that we no longer use CRT functions to infer
    them.
    
                   Entry name           Subsystem
      main         mainCRTStartup       console
      wmain        wmainCRTStartup      console
      WinMain      WinMainCRTStartup    windows
      wWinMain     wWinMainCRTStartup   windows
    
    llvm-svn: 240922
    45044f47
Loading