mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-08 11:44:05 +00:00
[LLDB][LoongArch] ObjectFile: add a case for EM_LOONGARCH
This adds the jump slot mapping for LoongArch. This is a simple change that ensures lldb running properly. Note that this problem was found only when CMake variables "DLLVM_ENABLE_ASSERTIONS=ON" is selected. Without this patch, ``` $ build/bin/lldb test ../ELFHeader::GetRelocationJumpSlotType() const: Assertion `false && "architecture not supported"' fail ``` With this patch ``` $ build/bin/lldb test (lldb) target create "test" Current executable set to '../test' (loongarch64). ``` Reviewed By: SixWeining, DavidSpickett Differential Revision: https://reviews.llvm.org/D141245
This commit is contained in:
parent
46a8d5779b
commit
d52582b6b7
@ -211,6 +211,9 @@ unsigned ELFHeader::GetRelocationJumpSlotType() const {
|
||||
case EM_RISCV:
|
||||
slot = R_RISCV_JUMP_SLOT;
|
||||
break;
|
||||
case EM_LOONGARCH:
|
||||
slot = R_LARCH_JUMP_SLOT;
|
||||
break;
|
||||
}
|
||||
|
||||
return slot;
|
||||
|
Loading…
Reference in New Issue
Block a user