[LLD] [MinGW] Implement the --exclude-symbols option
authorMartin Storsjö <martin@martin.st>
Mon, 18 Jul 2022 20:43:02 +0000 (23:43 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 11 Aug 2022 08:59:47 +0000 (11:59 +0300)
commitd1da6469f9ea9b078276ee2e098241f0440468be
tree00b4c1f3c25aa8890d65056c7031d602995b008a
parent164067918725d1ee8875e38213b6aee9be13383e
[LLD] [MinGW] Implement the --exclude-symbols option

This adds support for the existing GNU ld command line option, which
allows excluding individual symbols from autoexport (when linking a
DLL and no symbols are marked explicitly as dllexported).

Differential Revision: https://reviews.llvm.org/D130118
lld/COFF/Driver.cpp
lld/COFF/MinGW.cpp
lld/COFF/MinGW.h
lld/COFF/Options.td
lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/docs/ReleaseNotes.rst
lld/test/COFF/exclude-symbols.s [new file with mode: 0644]
lld/test/MinGW/driver.test