llvm-project/lld/ELF
Igor Kudrin 65bddeaacf [ELF2] Check for TLS mismatch in symbol resolution.
The linker should generate an error if a TLS symbol is resolved
for a non-TLS reference and vice versa.

The patch addresses PR24244 (https://llvm.org/bugs/show_bug.cgi?id=24244)

Differential Revision: http://reviews.llvm.org/D13550

llvm-svn: 249817
2015-10-09 09:58:39 +00:00
..
CMakeLists.txt ELF2: Create LinkerScript.cpp and move code from DriverUtils to there. 2015-09-30 17:23:26 +00:00
Config.h ELF2: Sort. NFC. 2015-10-09 02:46:28 +00:00
Driver.cpp Define --output= as an alias to -o. 2015-10-09 00:33:44 +00:00
Driver.h [ELF2] Handle -m option 2015-10-07 09:13:03 +00:00
DriverUtils.cpp ELF2: Create LinkerScript.cpp and move code from DriverUtils to there. 2015-09-30 17:23:26 +00:00
Error.cpp [ELF2] Output of all unknown arguments instead of only one. 2015-09-24 18:55:33 +00:00
Error.h [ELF2] Output of all unknown arguments instead of only one. 2015-09-24 18:55:33 +00:00
InputFiles.cpp Make this test a bit stricter. 2015-10-08 20:29:22 +00:00
InputFiles.h ELF2: Use the same name as COFF. 2015-10-07 23:20:23 +00:00
InputSection.cpp ELF2: Do not pass GotVA because it's accessible as Out<ELFT>::Got->getVA(). 2015-10-08 20:06:07 +00:00
InputSection.h ELF2: Make singleton output sections globally accessible. 2015-10-07 19:18:16 +00:00
LinkerScript.cpp [ELF2] Implement linker script SEARCH_DIR() directive. 2015-10-08 17:51:41 +00:00
Options.td Define --output= as an alias to -o. 2015-10-09 00:33:44 +00:00
OutputSections.cpp [ELF2] - Implemented rel[a].plt sections 2015-10-09 09:58:08 +00:00
OutputSections.h [ELF2] - Implemented rel[a].plt sections 2015-10-09 09:58:08 +00:00
README.md ELF2: Update README. 2015-10-06 19:21:13 +00:00
SymbolTable.cpp [ELF2] Check for TLS mismatch in symbol resolution. 2015-10-09 09:58:39 +00:00
SymbolTable.h [ELF2] Check for TLS mismatch in symbol resolution. 2015-10-09 09:58:39 +00:00
Symbols.cpp ELF2: Inititalize other symbols only once as well. 2015-10-08 00:44:28 +00:00
Symbols.h [ELF2] Check for TLS mismatch in symbol resolution. 2015-10-09 09:58:39 +00:00
Target.cpp [ELF2] Make the system page size a target-dependent property 2015-10-08 22:23:54 +00:00
Target.h [ELF2] Make the system page size a target-dependent property 2015-10-08 22:23:54 +00:00
Writer.cpp [ELF2] - Implemented rel[a].plt sections 2015-10-09 09:58:08 +00:00
Writer.h ELF2: De-templatize writeResult for simplicity. 2015-10-07 18:29:51 +00:00

README.md

The New ELF Linker

This directory contains a port of the new PE/COFF linker for ELF.

Overall Design

See COFF/README.md for details on the design. Note that unlike COFF, we do not distinguish chunks from input sections; they are merged together.

Capabilities

This linker can link LLVM and Clang on Linux x86-64 with -LLVM_ENABLE_THREADS=OFF.