Rafael Avila de Espindola
2014-Jul-01 16:14 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
> Why is clang loading LLVMgold.dll? I thought it's supposed to be loaded by gold. > > I don't think gold even produces COFF. Are you trying to produce ELF on Windows? >Gold is elf only but BFD ld supports the same plugins these days. I have no idea if the plugin infrastructure works on windows or not, but it could be made to work since all it needs is to find a single symbol in the plugin. Cheers, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140701/dae1b267/attachment.html>
sgundapa at codeaurora.org
2014-Jul-01 17:46 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
CCed Ian Lance Taylor>> Why is clang loading LLVMgold.dll? I thought it's supposed to be loaded >> by gold.I framed the words badly here.>> >> I don't think gold even produces COFF. Are you trying to produce ELF on >> Windows? >>Yes, I am trying to produce ELF on Windows.> > Gold is elf only but BFD ld supports the same plugins these days. > > I have no idea if the plugin infrastructure works on windows or not, but > it could be made to work since all it needs is to find a single symbol in > the plugin. >My sources are outdated. I will update and give a try. Rafael, May I know what is the symbol ? Do I need to modify the symbol name for windows ?> Cheers, > Rafael
sgundapa at codeaurora.org
2014-Jul-01 22:49 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
I was able to build LLVMgold.dll on windows. I was to able to compile and link a simple hello world program on windows. To clarify, the executable was generated to run on linux. However, I am seeing a run time crash. Note: My windows sysroot has gold linker as the default linker. I compile the executable for arm (cortex-a9) --Sumanth G> > CCed Ian Lance Taylor > > >>> Why is clang loading LLVMgold.dll? I thought it's supposed to be >>> loaded >>> by gold. > I framed the words badly here. > > >>> >>> I don't think gold even produces COFF. Are you trying to produce ELF >>> on >>> Windows? >>> > Yes, I am trying to produce ELF on Windows. > >> >> Gold is elf only but BFD ld supports the same plugins these days. >> >> I have no idea if the plugin infrastructure works on windows or not, but >> it could be made to work since all it needs is to find a single symbol >> in >> the plugin. >> > My sources are outdated. I will update and give a try. > Rafael, May I know what is the symbol ? Do I need to modify the symbol > name for windows ? > >> Cheers, >> Rafael > >