llvm-project/lld/ELF
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
..
Arch [ELF][AArch64] Add support for AArch64 range thunks. 2017-11-29 11:15:12 +00:00
Bits.h Move bit operations to a new file, ELF/Bits.h. 2017-10-26 21:37:17 +00:00
CMakeLists.txt Fix shared library builds of lld, broken in SVN r319138 2017-11-28 08:12:03 +00:00
Config.h [ELF] Read ARM BuildAttributes section to determine supported features. 2017-11-28 13:51:48 +00:00
Driver.cpp Make the behavior of the -v option more closer to GNU linkers. 2017-12-05 00:03:41 +00:00
Driver.h [ELF] Fall back to search dirs for linker scripts specified with -T 2017-11-20 15:43:20 +00:00
DriverUtils.cpp Move Memory.{h,cpp} to Common. 2017-11-28 20:39:17 +00:00
EhFrame.cpp De-template EhReader. NFC. 2017-10-27 03:14:09 +00:00
EhFrame.h De-template EhReader. NFC. 2017-10-27 03:14:09 +00:00
Filesystem.cpp Don't use llvm/Config/config.h. 2017-11-17 21:40:38 +00:00
Filesystem.h Add a missing #include. 2017-11-17 08:17:21 +00:00
GdbIndex.cpp Error instead of ignoring broken debug info. 2017-11-30 05:37:35 +00:00
GdbIndex.h [ELF] - Teach LLD to use information from .debug_str for error reporting. 2017-11-17 11:57:47 +00:00
ICF.cpp ELF: Merge DefinedRegular and Defined. 2017-11-06 04:35:31 +00:00
ICF.h [ELF] - Apply clang-format. NFC. 2017-07-18 11:55:35 +00:00
InputFiles.cpp Use Symbol::File directly. 2017-11-29 22:47:35 +00:00
InputFiles.h Consistent use of <internal> when displaying internal symbol names 2017-11-27 22:49:16 +00:00
InputSection.cpp [ELF] - Handle EhInputSection Live bit in MarkLive.cpp 2017-11-30 14:01:06 +00:00
InputSection.h Delete dead code. 2017-11-30 05:52:42 +00:00
LTO.cpp Use Symbol::File directly. 2017-11-29 22:47:35 +00:00
LTO.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
LinkerScript.cpp [ELF] - Produce relocation section name consistent with output section name when --emit-reloc used with linker script. 2017-12-01 09:04:52 +00:00
LinkerScript.h Delete dead code. NFC. 2017-11-29 01:55:03 +00:00
MapFile.cpp Use Symbol::File directly. 2017-11-29 22:47:35 +00:00
MapFile.h Pass symbol attributes instead of ElfSym to Shared symbol ctor. 2017-10-28 20:15:56 +00:00
MarkLive.cpp [ELF] - Handle EhInputSection Live bit in MarkLive.cpp 2017-11-30 14:01:06 +00:00
Options.td Ignore -no-ctors-in-init-array. 2017-11-17 08:17:36 +00:00
OutputSections.cpp Move Memory.{h,cpp} to Common. 2017-11-28 20:39:17 +00:00
OutputSections.h Delete dead code. NFC. 2017-11-29 01:55:03 +00:00
README.md Update the documents of the new LLD. 2016-03-12 06:06:40 +00:00
Relocations.cpp Use Symbol::File directly. 2017-11-29 22:47:35 +00:00
Relocations.h Rename Body -> Sym. 2017-11-04 00:31:04 +00:00
ScriptLexer.cpp [lld] unified COFF and ELF error handling on new Common/ErrorHandler 2017-10-25 22:28:38 +00:00
ScriptLexer.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
ScriptParser.cpp Move Memory.{h,cpp} to Common. 2017-11-28 20:39:17 +00:00
ScriptParser.h [ELF] Support expressions with -defsym option 2017-11-04 02:03:58 +00:00
Strings.cpp Factor out common code to Common/Strings.cpp. 2017-11-28 02:15:26 +00:00
Strings.h Factor out common code to Common/Strings.cpp. 2017-11-28 02:15:26 +00:00
SymbolTable.cpp Simplify. NFC. 2017-11-30 18:02:04 +00:00
SymbolTable.h Rename `Symtab` private memory to avoid confusion with global `Symtab` 2017-11-27 23:16:06 +00:00
Symbols.cpp Remove unused condition. 2017-11-30 01:08:09 +00:00
Symbols.h Use Symbol::File directly. 2017-11-29 22:47:35 +00:00
SyntheticSections.cpp Cache modulo values for the .gnu.hash section. 2017-12-02 00:37:13 +00:00
SyntheticSections.h Cache modulo values for the .gnu.hash section. 2017-12-02 00:37:13 +00:00
Target.cpp Rename SymbolBody -> Symbol 2017-11-03 21:21:47 +00:00
Target.h Move MIPS-specific code from Symbols.cpp to MIPS.cpp. 2017-11-07 00:04:22 +00:00
Thunks.cpp Replace a dyn_cast with a cast. NFC. 2017-11-29 21:29:52 +00:00
Thunks.h ELF: Merge DefinedRegular and Defined. 2017-11-06 04:35:31 +00:00
Writer.cpp Revert r318924 Skip over empty sections when checking for contiguous relro 2017-12-01 18:14:14 +00:00
Writer.h [ELF] - Produce relocation section name consistent with output section name when --emit-reloc used with linker script. 2017-12-01 09:04:52 +00:00

README.md

See docs/NewLLD.rst