- Feb 21, 2019
-
-
Rui Ueyama authored
This patch basically does the same thing as https://reviews.llvm.org/rL352729 did to clang. With this patch, lld now prints out a correct version string including a git commit id like this: $ bin/ld.lld --version LLD 9.0.0 (https://github.com/llvm/llvm-project.git c027658504fa9e68173f53dedaf223695a65e910) (compatible with GNU linkers) Fixes https://bugs.llvm.org/show_bug.cgi?id=40780 Differential Revision: https://reviews.llvm.org/D58411 llvm-svn: 354605
-
- Feb 01, 2019
-
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D57555 llvm-svn: 352825
-
- Jan 30, 2019
-
-
Sam Clegg authored
Previously we were never setting this which means it was always being set to Default (-O2/-Os). Differential Revision: https://reviews.llvm.org/D57422 llvm-svn: 352667
-
- Jan 19, 2019
-
-
Chandler Carruth authored
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
-
- Nov 01, 2018
-
-
Fangrui Song authored
Summary: Without this patch, MAttrs are not set. Patch by Yin Ma Reviewers: espindola, MaskRay, ruiu, pcc Reviewed By: MaskRay, pcc Subscribers: pcc, emaste, sbc100, inglorion, arichardson, aheejin, steven_wu, llvm-commits Differential Revision: https://reviews.llvm.org/D53446 llvm-svn: 345884
-
- Sep 26, 2018
-
-
Ryan Prichard authored
Summary: lld already gives later -z options precedence in getZFlag(). This matches the behavior of ld.bfd and ld.gold, where later options override earlier ones. (I tested with -z max-page-size and -z stack-size.) Reviewers: ruiu, espindola, grimar Reviewed By: ruiu, grimar Subscribers: grimar, emaste, arichardson, llvm-commits Differential Revision: https://reviews.llvm.org/D52526 llvm-svn: 343145
-
- Sep 17, 2018
-
-
Nico Weber authored
dllimported symbols go through an import stub that's called __imp_ followed by the name the stub points to. Make that work. Differential Revision: https://reviews.llvm.org/D52145 llvm-svn: 342401
-
- Sep 15, 2018
-
-
Nico Weber authored
For this, add a few toString() calls when printing the "undefined symbol" diagnostics; toString() already does demangling on Windows hosts. Also make lld::demangleMSVC() (called by toString(Symbol*)) call LLVM's microsoftDemangle() instead of UnDecorateSymbolName() so that it works on non-Windows hosts – this makes both updating tests easier and provides a better user experience for people doing cross-links. This doesn't yet do the right thing for symbols starting with __imp_, but that can be improved in a follow-up. Differential Revision: https://reviews.llvm.org/D52104 llvm-svn: 342332
-
- Aug 27, 2018
-
-
Rui Ueyama authored
llvm-svn: 340716
-
- Aug 24, 2018
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D51095 llvm-svn: 340635
-
- Aug 23, 2018
-
-
Nico Weber authored
This is a minor follow-up to https://reviews.llvm.org/D49189. On Windows, lld used to print "lld-link.exe: error: ...". Now it just prints "lld-link: error: ...". This matches what link.exe does (it prints "LINK : ...") and makes lld's output less dependent on the host system. https://reviews.llvm.org/D51133 llvm-svn: 340487
-
- Jul 02, 2018
-
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D48812 llvm-svn: 336143
-
- May 22, 2018
-
-
Sam Clegg authored
- Move some common code into Common/rrorHandler.cpp and Common/Strings.h. - Don't use `fatal` when incompatible bitcode files are encountered. - Rename NameRef variable to just Name See D47162 Differential Revision: https://reviews.llvm.org/D47206 llvm-svn: 333021
-
Fangrui Song authored
llvm-svn: 332951
-
Rui Ueyama authored
Previously, we had a loop to iterate over options starting with `--plugin-opt=` and parse them by hand. But we can make OptTable do that job for us. Differential Revision: https://reviews.llvm.org/D47167 llvm-svn: 332935
-
- Apr 11, 2018
-
-
David Blaikie authored
llvm-svn: 329841
-
- Feb 28, 2018
-
-
Rui Ueyama authored
clang-format won't reorder include files if there is a blank line. Thanks to Nico for the tips. llvm-svn: 326371
-
Rui Ueyama authored
clang-format automatically sorted the #include lines, but I believe Windows.h needs to be included before Dbghelp.h. llvm-svn: 326360
-
Rui Ueyama authored
This should resolve the issue that lld build fails in some hosts that uses case-insensitive file system. Differential Revision: https://reviews.llvm.org/D43788 llvm-svn: 326339
-
- Jan 30, 2018
-
-
Rafael Espindola authored
Previously an empty CPU string was passed to the LTO engine which resulted in a generic CPU for which certain features like NOPL were disabled. This fixes that. Patch by Pratik Bhatu! llvm-svn: 323801
-
- Jan 19, 2018
-
-
Rui Ueyama authored
llvm-svn: 322909
-
- Jan 17, 2018
-
-
Zachary Turner authored
The classes used to print and update time information are in common, so other linkers could use this as well if desired. Differential Revision: https://reviews.llvm.org/D41915 llvm-svn: 322736
-
- Dec 14, 2017
-
-
Rui Ueyama authored
Patch by Chen-Pang He. llvm-svn: 320754
-
- Dec 11, 2017
-
-
Sam Clegg authored
log are also diagnostics so it seems like they should to the same place as errors and debug messages. Without this change when I enable --verbose those messages go to stdout, but when I enable "-mllvm -debug" those messages go to stderr (because dbgs() goes to stderr by default). So I end up having to do this a lot: lld <args> > output_message 2>&1 Differential Revision: https://reviews.llvm.org/D41033 llvm-svn: 320427
-
- Dec 05, 2017
-
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D40824 llvm-svn: 319787
-
- Nov 28, 2017
-
-
Rui Ueyama authored
Differential Revision: https://reviews.llvm.org/D40571 llvm-svn: 319221
-
Rui Ueyama authored
llvm-svn: 319212
-
Rui Ueyama authored
Differential Revision: https://reviews.llvm.org/D40540 llvm-svn: 319211
-
Martin Storsjö authored
llvm-svn: 319152
-
Rui Ueyama authored
Differential Revision: https://reviews.llvm.org/D40530 llvm-svn: 319138
-
- Nov 27, 2017
-
-
David Blaikie authored
llvm-svn: 319084
-
- Nov 13, 2017
-
-
Rafael Espindola authored
It is really hard to cover restarts in a debugger, SIGKILL or power failures. I will try to handle them in a followup patch, but it will not support all the systems lld has to run on. RemoveFileOnSignal takes care of crashes. So what is left is making sure all regular exits delete the file. This patch does that by moving the buffer to error handling. That is a bit of a hack, but seemed better than to generalize it to take a callback on construction. I will implement this on COFF on the next patch. llvm-svn: 318060
-
- Nov 08, 2017
-
-
Rafael Espindola authored
llvm-svn: 317633
-
- Oct 27, 2017
-
-
Rui Ueyama authored
llvm-svn: 316776
-
- Oct 26, 2017
-
-
Bob Haarman authored
Summary: The COFF linker and the ELF linker have long had similar but separate Error.h and Error.cpp files to implement error handling. This change introduces new error handling code in Common/ErrorHandler.h, changes the COFF and ELF linkers to use it, and removes the old, separate implementations. Reviewers: ruiu Reviewed By: ruiu Subscribers: smeenai, jyknight, emaste, sdardis, nemanjai, nhaehnle, mgorny, javed.absar, kbarton, fedor.sergeev, llvm-commits Differential Revision: https://reviews.llvm.org/D39259 llvm-svn: 316624
-
- Oct 17, 2017
-
-
Alexander Richardson authored
llvm-svn: 315988
-
- Oct 13, 2017
-
-
Rafael Espindola authored
llvm-svn: 315732
-
Bob Haarman authored
Summary: This will allow using the functionality from other linkers. It is also a prerequisite for sharing the error logging code. Reviewers: ruiu Reviewed By: ruiu Subscribers: emaste, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D38822 llvm-svn: 315725
-
- Oct 03, 2017
-
-
NAKAMURA Takumi authored
llvm-svn: 314759
-
- Oct 02, 2017
-
-
Rui Ueyama authored
llvm-svn: 314725
-