mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
Update RuntimeDyldELF::findOPDEntrySection the new relocation iterators.
This was missing from r182908. I didn't noticed it at the time because the MCJIT tests were disabled when building with cmake on ppc64 (which I fixed in r183143). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1100b3325
commit
15e5c46e49
@ -529,9 +529,13 @@ void RuntimeDyldELF::findOPDEntrySection(ObjectImage &Obj,
|
|||||||
error_code err;
|
error_code err;
|
||||||
for (section_iterator si = Obj.begin_sections(),
|
for (section_iterator si = Obj.begin_sections(),
|
||||||
se = Obj.end_sections(); si != se; si.increment(err)) {
|
se = Obj.end_sections(); si != se; si.increment(err)) {
|
||||||
StringRef SectionName;
|
section_iterator RelSecI = si->getRelocatedSection();
|
||||||
check(si->getName(SectionName));
|
if (RelSecI == Obj.end_sections())
|
||||||
if (SectionName != ".opd")
|
continue;
|
||||||
|
|
||||||
|
StringRef RelSectionName;
|
||||||
|
check(RelSecI->getName(RelSectionName));
|
||||||
|
if (RelSectionName != ".opd")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (relocation_iterator i = si->begin_relocations(),
|
for (relocation_iterator i = si->begin_relocations(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user