mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 12:29:57 +00:00
75d616b13f
For ARM thunks, the `movt` half of the relocation was using an incorrect offset (it was off by 4 bytes). The original intent seems to have been for the offset to have been relative to the current instruction, in which case the difference of 4 makes sense. As the code stands, however, the offset is always calculated relative to the start of the thunk (`P`), and so the `movw` and `movt` halves should use the same offset. This requires a very particular offset between the thunk and its target to be triggered, and it results in the `movt` half of the relocation being off-by-one. The tests here use ARM-Thumb interworking thunks, since those are the only ARM thunks currently implemented. I actually encountered this with a range extension thunk (having Peter's patches cherry-picked locally), but the underlying issue is identical. Differential Revision: https://reviews.llvm.org/D38112 llvm-svn: 313915 |
||
---|---|---|
.. | ||
cmake/modules | ||
COFF | ||
docs | ||
ELF | ||
include/lld | ||
lib | ||
MinGW | ||
test | ||
tools/lld | ||
unittests | ||
.arcconfig | ||
.clang-format | ||
.gitignore | ||
CMakeLists.txt | ||
CODE_OWNERS.TXT | ||
LICENSE.TXT | ||
README.md |
LLVM Linker (lld)
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.