summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-05-11 14:49:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-05-11 14:49:40 +0000
commitee8091affaedaacc7ba723b8699950a3b2078d21 (patch)
treee90c882bb55d9c813e7cb71660222f2cb299c2ae
parent00e2459843d96764a65e1ad4426dd8e4517d7b37 (diff)
parent036793a771d662ee50555aba082ef2772fb2144f (diff)
downloadmclinker-ee8091affaedaacc7ba723b8699950a3b2078d21.tar.gz
Merge "Teach mclinker that SHT_RELR sections are just relocations."android-s-beta-2android-s-beta-1
-rw-r--r--lib/Core/IRBuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Core/IRBuilder.cpp b/lib/Core/IRBuilder.cpp
index 4c6eab8..3c3823e 100644
--- a/lib/Core/IRBuilder.cpp
+++ b/lib/Core/IRBuilder.cpp
@@ -82,6 +82,7 @@ LDFileFormat::Kind GetELFSectionKind(uint32_t pType,
return LDFileFormat::NamePool;
case llvm::ELF::SHT_RELA:
case llvm::ELF::SHT_REL:
+ case 19 /*llvm::ELF::SHT_RELR*/:
return LDFileFormat::Relocation;
case llvm::ELF::SHT_NOBITS:
return LDFileFormat::BSS;