mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Fix DynamicLoaderMacOSXDYLD to deal with new shared cache changes.
<rdar://problem/20357466> llvm-svn: 233714
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user