search for: crt0_c

Displaying 2 results from an estimated 2 matches for "crt0_c".

Did you mean: crt0
2017 May 21
2
RFC: A new llvm-dlltool driver and llvm-lib driver improvements
Hi Martell, r289280 was not intended to be a significant functional change in the sense that it would cause programs to fail to link, so this may be a bug I introduced in r289280 (or one of the followup patches, which also changed link order). How is crt0_c.c being added to the link? If crt0_c.c is supplying a definition of the main function I would expect it to be in an archive which would appear after the user supplied inputs on the command line. Archives and objects appearing earlier in the link have priority over archives appearing later, so the u...
2017 May 11
2
RFC: A new llvm-dlltool driver and llvm-lib driver improvements
...w up with a question on the linker side of things. > > Since rL289280 I can no longer link programs with the mingw-crt because of > dup function errors of the main function. > > In mingw-w64-crt/crt/crtexe.c a main function is called > from __tmainCRTStartup > mingw-w64-crt/crt/crt0_c.c defines this main and calls WinMain in the case > where main does not exist. > What used to happen before was the crt0_c.c main would be ignored at link > time because of priority on the users main function but now I just get a > dup symbol error as there is no checking on priority an...