summaryrefslogtreecommitdiff
path: root/lld/unittests
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-05-28 19:09:30 +0000
committerRui Ueyama <ruiu@google.com>2015-05-28 19:09:30 +0000
commitc02f028201e996ed750c0ff6b374b81289b13efb (patch)
treebe23906157446e156f86dd312cc3ed0510af19cb /lld/unittests
parent02d56c5760e254b3c0cf22b7cbe3d5ce788f8d96 (diff)
COFF: Add a new PE/COFF port.
This is an initial patch for a section-based COFF linker. The patch has 2300 lines of code including comments and blank lines. Before diving into details, you want to start from reading README because it should give you an overview of the design. All important things are written in the README file, so I write summary here. - The linker is already able to self-link on Windows. - It's significantly faster than the existing implementation. The existing one takes 5 seconds to link LLD on my machine, while the new one only takes 1.2 seconds, even though the new one is not multi-threaded yet. (And a proof-of-concept multi- threaded version was able to link it in 0.5 seconds.) - It uses much less memory (250MB vs. 2GB virtual memory space to self-host). - IMHO the new code is much simpler and easier to read than the existing PE/COFF port. http://reviews.llvm.org/D10036
Diffstat (limited to 'lld/unittests')
-rw-r--r--lld/unittests/DriverTests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/CMakeLists.txt b/lld/unittests/DriverTests/CMakeLists.txt
index 59d56d45958..d9ff62cddd5 100644
--- a/lld/unittests/DriverTests/CMakeLists.txt
+++ b/lld/unittests/DriverTests/CMakeLists.txt
@@ -8,6 +8,7 @@ add_lld_unittest(DriverTests
target_link_libraries(DriverTests
lldDriver
+ lldCOFF
lldCore
lldPECOFF
lldMachO