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

Michael Spencer bigcheesegs at gmail.com
Mon Feb 11 17:55:57 PST 2013



================
Comment at: include/lld/Core/LinkerOptions.h:100
@@ -98,3 +99,3 @@
     : _baseAddress(0)
-    , _outputKind(OutputKind::Executable)
+    , _outputKind(OutputKind::StaticExecutable)
     , _outputCommands(false)
----------------
kledzik at apple.com wrote:
> 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.
Yeah, I was considering that. The default for gnu-ld depends on the target. Most often it's dynamic. I just didn't want to go add -output-type=static to all the tests.

I'll change it to an invalid value.


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



More information about the llvm-commits mailing list