mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-02 23:50:19 +00:00
Remove a warning in DynamicLoaderDarwin::UpdateImageLoadAddress
when the binary loaded in memory has a section that we cannot find in the on-disk version. I added this warning out of an overabundance of caution originally, but I've never seen an instance of it being hit in the past few years, and there are some changes for the shared cache on darwin systems where a segment is added when the shared cache is constructed so we're now hitting this warning. I've decided to remove it altogether. <rdar://problem/46889346> llvm-svn: 352158
This commit is contained in:
parent
1b1e685f10
commit
9073eb4f25
@ -255,15 +255,7 @@ bool DynamicLoaderDarwin::UpdateImageLoadAddress(Module *module,
|
||||
|
||||
changed = m_process->GetTarget().SetSectionLoadAddress(
|
||||
section_sp, new_section_load_addr, warn_multiple);
|
||||
} else {
|
||||
Host::SystemLog(
|
||||
Host::eSystemLogWarning,
|
||||
"warning: unable to find and load segment named '%s' at "
|
||||
"0x%" PRIx64 " in '%s' in macosx dynamic loader plug-in.\n",
|
||||
info.segments[i].name.AsCString("<invalid>"),
|
||||
(uint64_t)new_section_load_addr,
|
||||
image_object_file->GetFileSpec().GetPath().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user