forked from OSchip/llvm-project
Handle R_386_PLT32 in RuntimeDyldELF.
This should fix the 32 bit buildbots. llvm-svn: 323344
This commit is contained in:
parent
51f0d64b9c
commit
fc16f76edb
|
@ -326,6 +326,9 @@ void RuntimeDyldELF::resolveX86Relocation(const SectionEntry &Section,
|
||||||
Value + Addend;
|
Value + Addend;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Handle R_386_PLT32 like R_386_PC32 since it should be able to
|
||||||
|
// reach any 32 bit address.
|
||||||
|
case ELF::R_386_PLT32:
|
||||||
case ELF::R_386_PC32: {
|
case ELF::R_386_PC32: {
|
||||||
uint32_t FinalAddress =
|
uint32_t FinalAddress =
|
||||||
Section.getLoadAddressWithOffset(Offset) & 0xFFFFFFFF;
|
Section.getLoadAddressWithOffset(Offset) & 0xFFFFFFFF;
|
||||||
|
|
Loading…
Reference in New Issue