llvm-project/lld
Rui Ueyama be61cc90c4 Make the behavior of the -v option more closer to GNU linkers.
Previously, lld exited with an error status if the only option given to
the command was -v. GNU linkers gracefully exit in that case. This patch
makes lld behave like GNU.

Note that even with this patch, lld's -v and --version options behave
slightly differently than GNU linkers' counterparts. For example,
if you run `ld.bfd -v -v`, the version string is printed out twice.
But that is an edge case that I don't think we need to take care of.

Fixes https://bugs.llvm.org/show_bug.cgi?id=31582

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

llvm-svn: 319717
2017-12-05 00:03:41 +00:00
..
COFF Revert "Merge .xdata into .rdata by default" 2017-12-01 01:04:31 +00:00
Common Move Memory.{h,cpp} to Common. 2017-11-28 20:39:17 +00:00
ELF Make the behavior of the -v option more closer to GNU linkers. 2017-12-05 00:03:41 +00:00
MinGW [MinGW] Ignore the --build-id, --pie-executable and --disable-auto-image-base options 2017-11-15 08:18:28 +00:00
cmake/modules [lld] Switch to add_llvm_install_targets 2017-12-01 04:17:45 +00:00
docs [WebAssembly] Initial wasm linker implementation 2017-11-17 18:14:09 +00:00
include/lld Move Memory.{h,cpp} to Common. 2017-11-28 20:39:17 +00:00
lib MachONormalizedFile.h: Remove unimplemented function 2017-11-22 21:10:19 +00:00
test Make the behavior of the -v option more closer to GNU linkers. 2017-12-05 00:03:41 +00:00
tools/lld [WebAssembly] Initial wasm linker implementation 2017-11-17 18:14:09 +00:00
unittests Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
utils Add a script to run various benchmarks and send the result to lnt. 2017-11-14 16:40:30 +00:00
wasm Reland "[WebAssembly] Add support for visibility flag"" 2017-12-03 02:38:04 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format
.gitignore
CMakeLists.txt [WebAssembly] Initial wasm linker implementation 2017-11-17 18:14:09 +00:00
CODE_OWNERS.TXT [WebAssembly] Initial wasm linker implementation 2017-11-17 18:14:09 +00:00
LICENSE.TXT
README.md Note that the benchmark set has been updated. 2017-11-14 17:48:48 +00:00

README.md

LLVM Linker (lld)

This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.

lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.

Benchmarking

In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.

It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz

The current sha256 is 69cff27cf63304a3f766e72dc9010407eced5c60635254a3c31496e1183ef9e1.