summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/ELFYAML.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-10-25 03:37:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-10-25 03:37:12 +0000
commit689e6c052e0514020e4a2c7623cb49056888c502 (patch)
tree75561fd06d3c6639c9128e14b13c850c35156faf /llvm/lib/ObjectYAML/ELFYAML.cpp
parent9f46ece85a1844c23a710645d9f84d936197d8de (diff)
downloadbcm5719-llvm-689e6c052e0514020e4a2c7623cb49056888c502.tar.gz
bcm5719-llvm-689e6c052e0514020e4a2c7623cb49056888c502.zip
llvm-readobj: Add support for reading relocations in the Android packed format.
This is in preparation for testing lld's upcoming relocation packing feature (D39152). I have verified that this implementation correctly unpacks the relocations from a Chromium DSO built with gold and the Android relocation packer for ARM32 and ARM64. Differential Revision: https://reviews.llvm.org/D39272 llvm-svn: 316543
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index dee820c21cb..b19a57585a3 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -405,6 +405,8 @@ void ScalarEnumerationTraits<ELFYAML::ELF_SHT>::enumeration(
ECase(SHT_GROUP);
ECase(SHT_SYMTAB_SHNDX);
ECase(SHT_LOOS);
+ ECase(SHT_ANDROID_REL);
+ ECase(SHT_ANDROID_RELA);
ECase(SHT_LLVM_ODRTAB);
ECase(SHT_GNU_ATTRIBUTES);
ECase(SHT_GNU_HASH);
OpenPOWER on IntegriCloud