Remove check for object file type from DynamicLoaderPOSIXDYLD::DidAttach

For PIE executables the type of the main executable is shared object
so we can't force that the main executable should have the type of
executable.

llvm-svn: 236870
This commit is contained in:
Tamas Berghammer 2015-05-08 15:45:53 +00:00
parent 4045f66175
commit d916dbb726
1 changed files with 0 additions and 4 deletions

View File

@ -140,10 +140,6 @@ DynamicLoaderPOSIXDYLD::DidAttach()
lldb_private::ObjectFile * obj = executable_sp->GetObjectFile();
if (obj)
{
// don't rebase if the module is not an executable
if (obj->GetType() != ObjectFile::Type::eTypeExecutable)
rebase_exec = false;
// don't rebase if the module already has a load address
Target & target = m_process->GetTarget ();
Address addr = obj->GetImageInfoAddress (&target);