[LLVMdev] lld MachO addEntryPointLoadCommand

Nick Kledzik kledzik at apple.com
Wed Aug 1 11:59:05 PDT 2012


On Aug 1, 2012, at 10:06 AM, Sid Manning wrote:
> 
> Should this function return true when _outputkind is outputDynamicExecutable?
It depends on what the minimum OS version (a command line  option) is.  We don't have platform specific command line options working yet, so it is hard coded for now.

-Nick


> 
> WriterOptionsMachO.cpp:
> bool WriterOptionsMachO::addEntryPointLoadCommand() const {
>  switch ( _outputkind ) {
>    case outputDynamicExecutable:
>      // Only main executables have an entry point
>      return false;
>    case outputDylib:
>    case outputBundle:
>    case outputObjectFile:
>      return false;
>  }
>  llvm_unreachable("unknown outputkind");
> }
> -- 
> Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum




More information about the llvm-dev mailing list