]> granicus.if.org Git - llvm/commit
[RuntimeDyld][ORC] Add support for Thumb mode to RuntimeDyldMachOARM.
authorLang Hames <lhames@gmail.com>
Wed, 9 Aug 2017 20:19:27 +0000 (20:19 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 9 Aug 2017 20:19:27 +0000 (20:19 +0000)
commit2c350aa3d38481120efa0f609ca3749479d46b4c
tree543398a18bf1f0daeb60f984cef647a7ab1ce704
parente695a2327694cf391d280d1291aae65f9c98a3b9
[RuntimeDyld][ORC] Add support for Thumb mode to RuntimeDyldMachOARM.

This patch adds support for thumb relocations to RuntimeDyldMachOARM, and adds
a target-specific flags field to JITSymbolFlags (so that on ARM we can record
whether each symbol is Thumb-mode code).

RuntimeDyldImpl::emitSection is modified to ensure that stubs memory is
correctly aligned based on the size returned by getStubAlignment().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310517 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/JITSymbol.h
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
test/ExecutionEngine/RuntimeDyld/ARM/MachO_Thumb_Relocations.s [new file with mode: 0644]