[PATCH] [lld][Core, Driver, ELF] Differentiate static and dynamic executables.

kledzik at apple.com kledzik at apple.com
Mon Feb 11 17:50:42 PST 2013



================
Comment at: include/lld/Core/LinkerOptions.h:100
@@ -98,3 +99,3 @@
     : _baseAddress(0)
-    , _outputKind(OutputKind::Executable)
+    , _outputKind(OutputKind::StaticExecutable)
     , _outputCommands(false)
----------------
StaticExecutable is a strange default.  Is that the GNU linker default?  The default output kind with the darwin linker is a dynamic main executable.  

Seems like it would be safer to add an new enumeration value that is "invalid" or "undefined" output kind and make that the default.  Then require the flavor specific driver to set its own default.


http://llvm-reviews.chandlerc.com/D396



More information about the llvm-commits mailing list