[LLD] [COFF] Fix the mingw --export-all-symbols behaviour with comdat symbols
When looking for the "all" symbols that are supposed to be exported, we can't look at the live flag - the symbols we mark as to be exported will become GC roots even if they aren't yet marked as live. With this in place, building an LLVM library with BUILD_SHARED_LIBS produces the same set of symbols exported regardless of whether the --gc-sections flag is specified, both with and without being built with -ffunction-sections. Differential Revision: https://reviews.llvm.org/D101522
Loading
Please register or sign in to comment