diff options
author | Elliott Hughes <enh@google.com> | 2021-05-10 15:04:27 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-05-10 15:04:27 -0700 |
commit | 036793a771d662ee50555aba082ef2772fb2144f (patch) | |
tree | e90c882bb55d9c813e7cb71660222f2cb299c2ae | |
parent | 00e2459843d96764a65e1ad4426dd8e4517d7b37 (diff) | |
download | mclinker-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.cpp | 1 |
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; |