[PATCH] D38760: [LLD] [COFF] Add support for automatically exporting all symbols

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 12:35:55 PDT 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D38760#895075, @ruiu wrote:

> By the way, why does GNU ld export all symbols by default? Is it to emulate the ELF-ism on Windows?


Yes, I guess so. With MinGW tools, you can build e.g. quite a number of generic unix autotools based libraries without any modifications (as long as the library is linked with `-no-undefined`); it obviously isn't ideal windows packaging, but in many cases good enough.


https://reviews.llvm.org/D38760





More information about the llvm-commits mailing list