summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-05-10 15:04:27 -0700
committerElliott Hughes <enh@google.com>2021-05-10 15:04:27 -0700
commit036793a771d662ee50555aba082ef2772fb2144f (patch)
treee90c882bb55d9c813e7cb71660222f2cb299c2ae
parent00e2459843d96764a65e1ad4426dd8e4517d7b37 (diff)
downloadmclinker-036793a771d662ee50555aba082ef2772fb2144f.tar.gz
Teach mclinker that SHT_RELR sections are just relocations.
Nothing to see here, mclinker... We can't use the named constant because the version of LLVM used by mclinker is too old to have it, so mclinker gets a hard-coded 19. Bug: http://b/147452927 Test: atest CtsRsCppTestCases:android.cts.rscpp.RSYuvTest#test_YV12 -- --abi x86_64 Change-Id: I71e84b4f030396c2515feedb8248a06e1603a176
-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;