OSDN Git Service

llvm-readobj: fix printing number of relocations in Android packed format.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 7 Jun 2018 00:02:07 +0000 (00:02 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 7 Jun 2018 00:02:07 +0000 (00:02 +0000)
commit032b3051e3a47c01d5fac64c152815aa98ca373d
treef03325d841331ac467fb68bceadaec31d1c1d1e4
parentded60aa7f8bd05700454795dad69b1f42ca3bda2
llvm-readobj: fix printing number of relocations in Android packed format.

With '-elf-output-style=GNU -relocations', a header containing the number
of entries is printed before all the relocation entries in the section.
For Android packed format, we need to perform the unpacking first before
we can get the actual number of relocations in the section.

Patch by Rahul Chaudhry!

Differential Revision: https://reviews.llvm.org/D47800

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334147 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/elf-packed-relocs.test
tools/llvm-readobj/ELFDumper.cpp