summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-24 17:36:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-24 17:36:08 +0000
commitfc16f76edbffb273459cc9b0bdef6b576d8f438e (patch)
treef68ad97bccfbfd28175123652e3b320c47a75d8d /llvm/lib
parent51f0d64b9cd847f7637e5c480016a6f6e9fad173 (diff)
downloadbcm5719-llvm-fc16f76edbffb273459cc9b0bdef6b576d8f438e.tar.gz
bcm5719-llvm-fc16f76edbffb273459cc9b0bdef6b576d8f438e.zip
Handle R_386_PLT32 in RuntimeDyldELF.
This should fix the 32 bit buildbots. llvm-svn: 323344
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 7307db7ee61..7f3f50e418c 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -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;
OpenPOWER on IntegriCloud