[RuntimeDyld] Allow processRelocationRef to process more than one relocation entry at a time.
Some targets require more than one relocation entry to perform a relocation. This change allows processRelocationRef to process more than one relocation entry at a time by passing the relocation iterator itself instead of just the relocation entry. Related to <rdar://problem/16199095> llvm-svn: 204439
This commit is contained in:
@@ -410,6 +410,11 @@ relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
|
||||
return relocation_iterator(RelocationRef(Ret, this));
|
||||
}
|
||||
|
||||
bool COFFObjectFile::section_rel_empty(DataRefImpl Ref) const {
|
||||
const coff_section *Sec = toSec(Ref);
|
||||
return Sec->NumberOfRelocations == 0;
|
||||
}
|
||||
|
||||
// Initialize the pointer to the symbol table.
|
||||
error_code COFFObjectFile::initSymbolTablePtr() {
|
||||
if (error_code EC = getObject(
|
||||
|
||||
Reference in New Issue
Block a user