aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJinyang He <hejinyang@loongson.cn>2024-02-06 09:09:13 +0800
committerGitHub <noreply@github.com>2024-02-06 09:09:13 +0800
commit06a728f3feab876f9195738b5774e82dadc0f3a7 (patch)
tree46fc6841cfab985912df17801db64475d667c35f /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parenta71147dd28c6676fc46e4ec0a5d6e0b0823cced5 (diff)
downloadllvm-06a728f3feab876f9195738b5774e82dadc0f3a7.zip
llvm-06a728f3feab876f9195738b5774e82dadc0f3a7.tar.gz
llvm-06a728f3feab876f9195738b5774e82dadc0f3a7.tar.bz2
[lld][ELF] Support relax R_LARCH_ALIGN (#78692)
Refer to commit 6611d58f5bbc ("Relax R_RISCV_ALIGN"), we can relax R_LARCH_ALIGN by same way. Reuse `SymbolAnchor`, `RISCVRelaxAux` and `initSymbolAnchors` to simplify codes. As `riscvFinalizeRelax` is an arch-specific function, put it override on `TargetInfo::finalizeRelax`, so that LoongArch can override it, too. The flow of relax R_LARCH_ALIGN is almost consistent with RISCV. The difference is that LoongArch only has 4-bytes NOP and all executable insn is 4-bytes aligned. So LoongArch not need rewrite NOP sequence. Alignment maxBytesEmit parameter is supported in psABI v2.30.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions