diff options
| author | Greg Clayton <gclayton@apple.com> | 2015-03-31 17:02:36 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2015-03-31 17:02:36 +0000 |
| commit | 581186ce396ddd23408ddf9f23263cbc8fe686c4 (patch) | |
| tree | 4a9854fddf701824cdf2c1f0968a5fc18a0c9b6c /lldb/source/Plugins/DynamicLoader/MacOSX-DYLD | |
| parent | 1ded220cc039f081b09f86f41dfa52afca5303d1 (diff) | |
| download | bcm5719-llvm-581186ce396ddd23408ddf9f23263cbc8fe686c4.tar.gz bcm5719-llvm-581186ce396ddd23408ddf9f23263cbc8fe686c4.zip | |
Fix DynamicLoaderMacOSXDYLD to deal with new shared cache changes.
<rdar://problem/20357466>
llvm-svn: 233714
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/MacOSX-DYLD')
| -rw-r--r-- | lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp index f3b4a36ff6b..777662e2999 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp @@ -1266,7 +1266,7 @@ DynamicLoaderMacOSXDYLD::ParseLoadCommands (const DataExtractor& data, DYLDImage // Iterate through the object file sections to find the // first section that starts of file offset zero and that // has bytes in the file... - if (dylib_info.segments[i].fileoff == 0 && dylib_info.segments[i].filesize > 0) + if ((dylib_info.segments[i].fileoff == 0 && dylib_info.segments[i].filesize > 0) || (dylib_info.segments[i].name == ConstString("__TEXT"))) { dylib_info.slide = dylib_info.address - dylib_info.segments[i].vmaddr; // We have found the slide amount, so we can exit |

