llvm-project/lld/wasm
Sam Clegg 305b0343ce [WebAssembly] Add --[no]-export-dynamic to replace --export-default
In a very recent change I introduced a --no-export-default flag
but after conferring with others it seems that this feature already
exists in gnu GNU ld and lld in the form the --export-dynamic flag
which is off by default.

This change replaces export-default with export-dynamic and also
changes the default to match the traditional linker behaviour.

Now, by default, only the entry point is exported.  If other symbols
are required by the embedder then --export-dynamic or --export can
be used to export all visibility hidden symbols or individual
symbols respectively.

This change touches a lot of tests that were relying on symbols
being exported by default.  I imagine it will also effect many
users but do think the change is worth it match of the traditional
behaviour and flag names.

Differential Revision: https://reviews.llvm.org/D52587

llvm-svn: 343265
2018-09-27 21:06:25 +00:00
..
CMakeLists.txt [WebAssembly] Fix broken build due to missing attributes.inc 2018-06-13 08:38:23 +00:00
Config.h [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
Driver.cpp [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
InputChunks.cpp [WebAssembly] Update Config member to match command line option 2018-09-27 00:46:54 +00:00
InputChunks.h [WebAssembly] Update Config member to match command line option 2018-09-27 00:46:54 +00:00
InputFiles.cpp [WebAssembly] Move .debug_line section address of dead function outside section range 2018-09-24 23:50:55 +00:00
InputFiles.h [WebAssembly] Add support for --whole-archive. 2018-07-23 23:51:19 +00:00
InputGlobal.h [WebAssembly] Implement -print-gc-sections, to better test GC of globals 2018-04-20 17:28:12 +00:00
LTO.cpp [WebAssembly] Set threadmodel during LTO 2018-07-02 16:27:50 +00:00
LTO.h [WebAssembly] Initial support for LTO 2018-05-30 18:07:52 +00:00
MarkLive.cpp [WebAssembly] Add support for bitcode archive members 2018-06-28 17:04:58 +00:00
MarkLive.h Consistent (non) use of empty lines in include blocks 2018-02-20 21:53:18 +00:00
Options.td [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
OutputSections.cpp [WebAssembly] Add option to remove LEB padding at relocate sites 2018-05-18 23:28:05 +00:00
OutputSections.h [WebAssembly] clang-format (NFC) 2018-08-29 21:03:16 +00:00
OutputSegment.h [WebAssembly] Remove another trivial accessor. 2018-04-05 19:37:31 +00:00
SymbolTable.cpp [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
SymbolTable.h Set IsUsedInRegularObj in a consistent manor between COFF, ELF and wasm. NFC 2018-08-02 20:39:19 +00:00
Symbols.cpp [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
Symbols.h [WebAssembly] Fix --export of LTO symbols 2018-06-28 17:21:46 +00:00
Writer.cpp [WebAssembly] clang-format (NFC) 2018-08-29 21:03:16 +00:00
Writer.h
WriterUtils.cpp [WebAssembly] Add v128 value type 2018-09-20 22:07:18 +00:00
WriterUtils.h [WebAssembly] Add export/import for function pointer table 2018-03-27 17:38:51 +00:00