forked from OSchip/llvm-project
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:
parent
4045f66175
commit
d916dbb726
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue