llvm-capstone/lld
Alexandre Ganea 2700da5fe2 [LLD] Allow usage of LLD as a library
As discussed in https://github.com/llvm/llvm-project/issues/53475 this patch allows using LLD-as-a-lib. It also lets clients link only the drivers that they want (see unit tests).

This also adds the unit test infra as in the other LLVM projects. Among the test coverage, I've added the original issue from @krzysz00, see: https://github.com/ROCmSoftwarePlatform/D108850-lld-bug-reproduction

Important note: this doesn't allow (yet) linking in parallel. This will come a bit later, in subsequent patches, for COFF at last.

Differential revision: https://reviews.llvm.org/D119049
2023-06-13 16:22:59 -04:00
..
cmake/modules [cmake] Fix path to LLVMConfig.cmake for multi-config builds 2023-01-13 20:32:59 +01:00
COFF [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
Common [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
docs [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
ELF [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
include/lld/Common [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
MachO [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
MinGW [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
test [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
tools/lld [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
unittests [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
utils [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
wasm [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [LLD] Allow usage of LLD as a library 2023-06-13 16:22:59 -04:00
CODE_OWNERS.TXT
LICENSE.TXT
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 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.