- Aug 14, 2019
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D66065 llvm-svn: 368815
-
- Aug 05, 2019
-
-
Martin Storsjö authored
With GNU tools, delayload is handled completely differently. (One creates a specific delayload import library using dlltool and then links against it instead of the normal import library.) Instead of requiring using -Xlink=-delayload:lib.dll, we can provide an lld specific option for this. Differential Revision: https://reviews.llvm.org/D65728 llvm-svn: 367837
-
- Jun 14, 2019
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D63250 llvm-svn: 363433
-
Martin Storsjö authored
This fixes PR42218. Differential Revision: https://reviews.llvm.org/D63249 llvm-svn: 363432
-
- Jun 08, 2019
-
-
Martin Storsjö authored
This is implemented by the lld-link option -include:, just like --require-defined. Contrary to --require-defined, the -u/--undefined option allows the symbol to remain undefined in the end. This should fix PR42121. Differential Revision: https://reviews.llvm.org/D62876 llvm-svn: 362882
-
- May 18, 2019
-
-
Martin Storsjö authored
I forgot to amend this change before committing it in SVN r361014, this is what was agreed upon in the review. llvm-svn: 361093
-
- May 17, 2019
-
-
Martin Storsjö authored
Libtool concludes that the linker doesn't support shared libraries, unless this flag is listed in the output of --help. Differential Revision: https://reviews.llvm.org/D62053 llvm-svn: 361017
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D62030 llvm-svn: 361016
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D62029 llvm-svn: 361015
-
Martin Storsjö authored
When integrating PDB output in mingw targeting build systems, it might be a lot of extra work to specify unique file names for the pdb output. Therefore allow omitting the actual file name and let it implicitly be the same name as the linker output, with a pdb extension. As the current form of the pdb option takes a separate parameter value, e.g. "-pdb out.pdb", it is impractical to leave out the parameter value. Therefore, introduce a second syntax for the option, with an equals sign, like -pdb=out.pdb, where the value easily can be omitted. The form -pdb= for requesting pdb files with an implicit name should work fine, even though it looks a bit unconventional in that form. Differential Revision: https://reviews.llvm.org/D62004 llvm-svn: 361014
-
- Apr 19, 2019
-
-
Martin Storsjö authored
GNU ld doesn't have such a flag though, so this is a lld specific option. Differential Revision: https://reviews.llvm.org/D60860 llvm-svn: 358759
-
- Feb 19, 2019
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D58380 llvm-svn: 354387
-
- Feb 06, 2019
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D57808 llvm-svn: 353342
-
- Feb 05, 2019
-
-
Martin Storsjö authored
This fixes PR40582. Patch by Georg Koppen! Differential Revision: https://reviews.llvm.org/D57679 llvm-svn: 353145
-
- Jan 29, 2019
-
-
Martin Storsjö authored
Move them to the same section as the newly added ignored options without a defined name. Also move options that actually weren't ignored to the right section. Differential Revision: https://reviews.llvm.org/D57374 llvm-svn: 352529
-
Martin Storsjö authored
GCC can use LLD with -fuse-ld=lld for MinGW these days, but by default these options are passed to the linker (unless -fno-lto is passed to the GCC driver). Differential Revision: https://reviews.llvm.org/D57304 llvm-svn: 352459
-
- Sep 10, 2018
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D51840 llvm-svn: 341846
-
- Jun 29, 2018
-
-
Martin Storsjö authored
In this mode, we retain the symbol table, but skip the actual debug information. Differential Revision: https://reviews.llvm.org/D48745 llvm-svn: 335947
-
- May 15, 2018
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D46872 llvm-svn: 332398
-
Martin Storsjö authored
This allows producing pdb debug info. This is an LLD specific option since GCC and GNU binutils doesn't support the PDB file format. Differential Revision: https://reviews.llvm.org/D46796 llvm-svn: 332327
-
- Mar 14, 2018
-
-
Martin Storsjö authored
llvm-svn: 327562
-
- Mar 01, 2018
-
-
Rui Ueyama authored
Currently --start-group=foo is accidentally accepted by the MinGW driver. Differential Revision: https://reviews.llvm.org/D43836 llvm-svn: 326478
-
- Feb 27, 2018
-
-
Martin Storsjö authored
These are required for handling circular dependencies between static libraries, which is something that lld-link always does without any extra parameters. Differential Revision: https://reviews.llvm.org/D43786 llvm-svn: 326172
-
- Dec 15, 2017
-
-
Martin Storsjö authored
The COFF linker automatically sets the IMAGE_DLL_CHARACTERISTICS_NO_SEH when suitable, similarly to link.exe. Differential Revision: https://reviews.llvm.org/D41275 llvm-svn: 320861
-
- Nov 15, 2017
-
-
Martin Storsjö authored
LLD already writes a build id if debug info is enabled. Some projects set --pie-executable to avoid GNU ld bugs about stripping base relocations from an executable when they actually are used. Since -fixed:no is the default (and we don't support setting the -fixed option via the MinGW frontend), we don't need to handle this. --disable-auto-image-base is ignored just like --enable-auto-image-base (as we ignore from before). Differential Revision: https://reviews.llvm.org/D40031 llvm-svn: 318285
-
Martin Storsjö authored
GNU ld doesn't seem to support --icf at all, but this was suggested in D39885, and GNU gold seems to support it. Differential Revision: https://reviews.llvm.org/D40019 llvm-svn: 318283
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D40018 llvm-svn: 318282
-
Martin Storsjö authored
All of these are disabled by default in GNU ld, but enabled by default in lld. Disable dynamicbase by default since it potentially could cause compatibility issues, but just ignore the others since the lld default should be fine for most concievable cases. Differential Revision: https://reviews.llvm.org/D40017 llvm-svn: 318281
-
Martin Storsjö authored
In GNU ld, this option is only available on i386, not on x86_64 (where it's enabled by default with no option to disable it either). Differential Revision: https://reviews.llvm.org/D40015 llvm-svn: 318280
-
- Nov 03, 2017
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D39541 llvm-svn: 317376
-
Martin Storsjö authored
Also move the -mllvm option to the right section of the options list. Differential Revision: https://reviews.llvm.org/D39528 llvm-svn: 317302
-
- Oct 26, 2017
-
-
Martin Storsjö authored
In GNU ld, this option is enabled by default, but can be set to reduce some warnings. For lld, ignore the flag (for now); in case linking still succeeds everything should be fine, if not, it should be clear to the user what part failed (possibly requiring adjusting the user project to not rely on this feature), instead of straight out failing due to an unknown flag. Differential Revision: https://reviews.llvm.org/D39330 llvm-svn: 316693
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D39329 llvm-svn: 316692
-
- Oct 12, 2017
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D38761 llvm-svn: 315563
-
- Sep 14, 2017
-
-
Rui Ueyama authored
GNU ld manual says that multi-letter long option can be prefixed with either -- or -. Therefore, we should accept not only --subsystem but also -subsystem, for example. There is one exception. If an option starts with "o", it should only be prefixed with -- to avoid ambiguity with -o<filename> option. Differential Revision: https://reviews.llvm.org/D37825 llvm-svn: 313286
-
- Sep 13, 2017
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D37769 llvm-svn: 313124
-
- Sep 11, 2017
-
-
Martell Malone authored
This adds support for passing LTO flags to the MINGW driver in GNU LD style i.e. -mllvm flag -> /mllvm:flag Reviewers: ruiu, mstorsjo Differential Revision: https://reviews.llvm.org/D37712 llvm-svn: 312956
-
Rui Ueyama authored
This patch also rename OPT_outlib OPT_out_implib for consistency. llvm-svn: 312949
-
Martin Storsjö authored
If the sysroot parameter is passed to the clang frontend, clang already uses it to find libraries and adds -L options for it, but also passes it on to the linker. Therefore we can get pretty far by just ignoring it altogether. Differential Revision: https://reviews.llvm.org/D37707 llvm-svn: 312945
-
Martin Storsjö authored
Pass the -verbose option through to the COFF linker, and show the arguments passed to it. If the -### option is specified, just show the produced argument list and exit, just like in clang. Replace the first argument with "lld-link" in order to produce a correct command line. Differential Revision: https://reviews.llvm.org/D37706 llvm-svn: 312944
-