[lld][flang] Add exceptions for Flang runtime libraries on MinGW.
authorMartin Storsjö <martin@martin.st>
Thu, 9 Mar 2023 10:55:53 +0000 (12:55 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 9 Mar 2023 11:16:12 +0000 (13:16 +0200)
commit04fc67bf08daef5031f78c4a52a069ff29cff099
treef7db439b0e5b234c6ecdc23a62a16e42b623ea68
parente2817933fdd4417673eb7f96a2842ae2dca8fc59
[lld][flang] Add exceptions for Flang runtime libraries on MinGW.

When linking a shared library with Flang on MinGW, the functions from the
Flang runtime are exported from the shared library. When trying to link an
executable to that library using Flang, the linker errors out because the
functions from the runtime conflict with the functions exported from the
shared library.

Add the Flang runtime libraries to the list of libraries for which no
symbols are exported.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D145389
lld/COFF/MinGW.cpp