From 036793a771d662ee50555aba082ef2772fb2144f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 May 2021 15:04:27 -0700 Subject: 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 --- lib/Core/IRBuilder.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3