[PATCH] D48402: [mingw] Fix GCC ABI compatibility for comdat things

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 13:21:35 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D48402#1139787, @mstorsjo wrote:

> If we make clang start producing this, how hard would it be to make LLD handle it gracefully? (I don't think I've touched the comdat handling in LLD significantly.)


Probably not too hard. We'd make a special case for comdat .pdata and .xdata (and maybe .ctors and .dtors) with `$` in the input section name. We'd take the symbol name after the `$`, look that symbol up, and pretend that this section was comdat associative with it.


https://reviews.llvm.org/D48402





More information about the llvm-commits mailing list