[mips] Resolve relocation for the stubs in MCJIT when load address is known
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 19 Nov 2013 21:56:00 +0000 (21:56 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 19 Nov 2013 21:56:00 +0000 (21:56 +0000)
commit2fb0234d5f779cf0b85f363c7b21ce8d37266031
tree8aac6a9992c216dca9146624a214b0b1e71c24b9
parent217baac7748389fcd7abd41d66d4964f0236e6d7
[mips] Resolve relocation for the stubs in MCJIT when load address is known

Instead of processing relocation for branch to stubs right away, emit a
modified relocation and add it to queue to be resolved later when final load
address is known.
This resolves seven MIPS MCJIT issues that were caused by missing relocation
fixups at the end.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
test/ExecutionEngine/MCJIT/remote/multi-module-a.ll
test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll
test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll
test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll
test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll
test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll