summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
index 7acae094fd3..319c89b9ce1 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
@@ -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);
OpenPOWER on IntegriCloud