Start adding support for creating shared libraries.
They are not fully functional yet, but this implements enough support for lld
itself to read them.
With that, delete the .so binary we were using for tests and start eating our
own dog food.
llvm-svn: 247487
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index a2d7022..d1b6326 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -79,6 +79,9 @@
if (!RPaths.empty())
Config->RPath = llvm::join(RPaths.begin(), RPaths.end(), ":");
+ if (Args.hasArg(OPT_shared))
+ Config->Shared = true;
+
// Create a list of input files.
std::vector<MemoryBufferRef> Inputs;