summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-05-08 15:45:53 +0000
committerTamas Berghammer <tberghammer@google.com>2015-05-08 15:45:53 +0000
commitd916dbb726fea24c3f5ed2f029f4058acd15b6d3 (patch)
treede0c80e233431dec009d91ef0fb8fce5e1b200fa
parent4045f661759bda787f9f5dbd95de08ff0f102b43 (diff)
downloadbcm5719-llvm-d916dbb726fea24c3f5ed2f029f4058acd15b6d3.tar.gz
bcm5719-llvm-d916dbb726fea24c3f5ed2f029f4058acd15b6d3.zip
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
-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