aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELF.cpp
diff options
context:
space:
mode:
authorKazushi (Jam) Marukawa <marukawa@nec.com>2021-12-12 12:51:44 +0900
committerKazushi (Jam) Marukawa <marukawa@nec.com>2021-12-13 20:28:35 +0900
commitd1057f9604713ca157e7d3a04dea4d5fc42313ed (patch)
tree25689a554b0230be9cb8b0c8c24546ab8116569c /llvm/lib/Object/ELF.cpp
parent2e585dd91a87d15cd68b4a3f63ffb15800c13bc8 (diff)
downloadllvm-d1057f9604713ca157e7d3a04dea4d5fc42313ed.zip
llvm-d1057f9604713ca157e7d3a04dea4d5fc42313ed.tar.gz
llvm-d1057f9604713ca157e7d3a04dea4d5fc42313ed.tar.bz2
[VE] Support R_VE_RELATIVE
Change getELFRelativeRelocationType() to return R_VE_RELATIVE as a preparation of lld for VE. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D115592
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r--llvm/lib/Object/ELF.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp
index 84181ae..6e56da1 100644
--- a/llvm/lib/Object/ELF.cpp
+++ b/llvm/lib/Object/ELF.cpp
@@ -210,6 +210,8 @@ uint32_t llvm::object::getELFRelativeRelocationType(uint32_t Machine) {
return ELF::R_SPARC_RELATIVE;
case ELF::EM_CSKY:
return ELF::R_CKCORE_RELATIVE;
+ case ELF::EM_VE:
+ return ELF::R_VE_RELATIVE;
case ELF::EM_AMDGPU:
break;
case ELF::EM_BPF: