The RuntimeDyldImpl::createStubFunction() contains hard coded JR encoding. The encoding given in this function is incorrect in case of R6 so it results in illegal instruction at runtime while evaluating expression in LLDB for MIPS32r6. This patch emit JR encoding based on Arch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This change looks correct but it ought to have a testcase.
@lhames: Is there a good way to test that the stub function was created correctly?
Comment Actions
LGTM on the basis that the code looks right and we don't know of any means to add a test case.