summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/compress-relocs.ll
Commit message (Collapse)AuthorAgeFilesLines
* [WebAssembly] Add --[no]-export-dynamic to replace --export-defaultSam Clegg2018-09-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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
* [WebAssembly] Don't compress LEBs by defaultSam Clegg2018-08-171-2/+6
| | | | | | | | | LEB compression breaks debug info so we don't want to enable it by default, even at high optimization levels. Differential Revision: https://reviews.llvm.org/D50729 llvm-svn: 340073
* Revert r339490 to match revert of llvm r339474 in r339630.Richard Smith2018-08-141-2/+2
| | | | llvm-svn: 339635
* Fix WebAssembly tests after r339474Richard Trieu2018-08-101-2/+2
| | | | | | Add flags to llc RUN lines to keep tests passing. llvm-svn: 339490
* [WebAssembly] Add option to remove LEB padding at relocate sitesSam Clegg2018-05-181-0/+22
This change adds the ability for lld to remove LEB padding from code section. This effectively shrinks the size of the resulting binary in proportion to the number of code relocations. Since there will be a performance cost this is currently only active for -O1 and above. Some toolchains may instead want to perform this compression as a post linker step (for example running a binary through binaryen will automatically compress these values). I imagine we might want to make this the default in the future. Differential Revision: https://reviews.llvm.org/D46416 llvm-svn: 332783
OpenPOWER on IntegriCloud