[Object] Add some more LoongArch support
authorWANG Xuerui <git@xen0n.name>
Thu, 1 Dec 2022 09:58:11 +0000 (17:58 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 1 Dec 2022 11:16:51 +0000 (19:16 +0800)
commit28b4838a33b66830a0e508559effb37ffe1a20bf
tree8a597c081e09a265f1cf138a88d319edd0afcf8f
parent06846596eb1768eea06778a5b6da31145e84e461
[Object] Add some more LoongArch support

Add ELFObjectFileBase::getLoongArchFeatures, and return the proper ELF
relative reloc type for LoongArch.

Reviewed By: MaskRay, SixWeining

Differential Revision: https://reviews.llvm.org/D138016
18 files changed:
llvm/include/llvm/Object/ELFObjectFile.h
llvm/lib/Object/ELF.cpp
llvm/lib/Object/ELFObjectFile.cpp
llvm/test/MC/LoongArch/Basic/Float/d-arith.s
llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s
llvm/test/MC/LoongArch/Basic/Float/d-branch.s
llvm/test/MC/LoongArch/Basic/Float/d-comp.s
llvm/test/MC/LoongArch/Basic/Float/d-conv.s
llvm/test/MC/LoongArch/Basic/Float/d-memory.s
llvm/test/MC/LoongArch/Basic/Float/d-move.s
llvm/test/MC/LoongArch/Basic/Float/f-arith.s
llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s
llvm/test/MC/LoongArch/Basic/Float/f-branch.s
llvm/test/MC/LoongArch/Basic/Float/f-comp.s
llvm/test/MC/LoongArch/Basic/Float/f-conv.s
llvm/test/MC/LoongArch/Basic/Float/f-memory.s
llvm/test/MC/LoongArch/Basic/Float/f-move.s
llvm/unittests/Object/ELFTest.cpp