Handle R_386_PLT32 in RuntimeDyldELF.

This should fix the 32 bit buildbots.

llvm-svn: 323344
This commit is contained in:
Rafael Espindola 2018-01-24 17:36:08 +00:00
parent 51f0d64b9c
commit fc16f76edb
1 changed files with 3 additions and 0 deletions

View File

@ -326,6 +326,9 @@ void RuntimeDyldELF::resolveX86Relocation(const SectionEntry &Section,
Value + Addend;
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: {
uint32_t FinalAddress =
Section.getLoadAddressWithOffset(Offset) & 0xFFFFFFFF;