[PATCH] D29154: [compiler-rt] Split dll_thunks into different sanitizers.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 10:22:03 PST 2017


mpividori added a comment.

@rnk  I would like to simply generate an import library. I have been reading some documentation to see if there is a way to simplify this and generate all of this code automatically with the linker. But, according to what I have found. (I really spent some time reading about this, but I don't have previous experience on Windows environment, so maybe I am missing something) . To create an import library, you need to provide exactly the same object files, that will be used to the final linkage. From: https://msdn.microsoft.com/en-us/library/f0z8kac4.aspx

  "Note that if you create your import library in a preliminary step, before creating your .dll, you must pass the same set of object files when building the .dll, as you passed when building the import library."

So, as the library will be statically linked to the main executable, and we don't have access to the code in the main executable, we can not generate an import library.


https://reviews.llvm.org/D29154





More information about the llvm-commits mailing list