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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 13:47:42 PDT 2017


mstorsjo created this revision.

GNU ld automatically exports all symbols if no symbols have been chosen to export via either def files or dllexport attributes. The same behaviour can also be enabled via the GNU ld option --export-all-symbols, in case some symbols are marked for export via a def file or dllexport attribute.

The list of excluded symbols is from GNU ld, minus the cygwin specific symbols.

Also add support for outputting the actual list of exported symbols in a def file, as in the GNU ld option --output-def.

These options in GNU ld are documented in https://sourceware.org/binutils/docs/ld/WIN32.html.


https://reviews.llvm.org/D38760

Files:
  COFF/Driver.cpp
  COFF/Options.td
  test/COFF/export-all.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38760.118469.patch
Type: text/x-patch
Size: 4789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171010/9b5e8669/attachment.bin>


More information about the llvm-commits mailing list