[PATCH] D73508: [LLD][COFF] Fix dll import for thread_local storage

Markus Böck via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 02:42:18 PST 2020


zero9178 added a comment.

Regarding the DLL boundary: 
Clangs native approach uses the .tls sections of PE, just like MSVC. Microsofts documentation here: https://docs.microsoft.com/en-us/previous-versions/6yh4a9k1%28v%3dvs.140%29 States that it should work over dll boundaries if the dll is auto imported by the executable and work with a LoadLibrary call if it's Windows Vista or newer.

I will further investigate your other issues mentioned. I first encountered the issue when trying to build current trunk version of LLVM using BUILD_SHARED_LIBS on.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73508/new/

https://reviews.llvm.org/D73508





More information about the llvm-commits mailing list