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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 03:33:25 PDT 2017


mstorsjo updated this revision to Diff 118582.
mstorsjo added a comment.

Print DATA in the output def for data symbols, adjusted the stdcall decoration for DllEntryPoint.

I did notice however that this also outputs everything from libmingwex.a that gets linked in; in practice this should probably be restricted to the object files passed directly on the command line, not libraries. Any suggestions on how to implement that? (GNU ld also has got other options like `--exclude-libs` that probably relates to that.) Or is this sensible as a first implementation already without that?


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.118582.patch
Type: text/x-patch
Size: 5061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/5237b603/attachment.bin>


More information about the llvm-commits mailing list