summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-02-07 22:54:47 +0000
committerGreg Clayton <gclayton@apple.com>2014-02-07 22:54:47 +0000
commit751caf65c26cf20b805e73ef650d688cfe7f7bc6 (patch)
treecfe358359bb94866b91dd339f4549370621215d6 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel
parentc7fb225cdc4662535340acb5ee0749a5c6d3c7d3 (diff)
downloadbcm5719-llvm-751caf65c26cf20b805e73ef650d688cfe7f7bc6.tar.gz
bcm5719-llvm-751caf65c26cf20b805e73ef650d688cfe7f7bc6.zip
Modified ObjectFile::SetLoadAddress() to now be:
ObjectFile::SetLoadAddress (Target &target, lldb::addr_t value, bool value_is_offset); Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides. Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing. Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file. llvm-svn: 201003
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index dcee569943a..a27d4b9d814 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -542,7 +542,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageAtFileAddress (Process *proce
if (m_module_sp)
{
bool changed = false;
- if (m_module_sp->SetLoadAddress (process->GetTarget(), 0, changed))
+ if (m_module_sp->SetLoadAddress (process->GetTarget(), 0, true, changed))
m_load_process_stop_id = process->GetStopID();
}
return false;
OpenPOWER on IntegriCloud