[llvm-readelf] - Do not treat SHT_ANDROID_RELR sections the same as SHT_RELR.
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 23 Jul 2020 10:32:05 +0000 (13:32 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 28 Jul 2020 08:24:58 +0000 (11:24 +0300)
commitee068aafbc5c6722158d5113290a211503e1cfe4
tree1931c3b0f765c4f3103f0f48374bc97cbe562978
parentad4ab81dccaa72d9b5137433a0923d325ff76135
[llvm-readelf] - Do not treat SHT_ANDROID_RELR sections the same as SHT_RELR.

Currently, when dumping section headers, llvm-readelf
prints "RELR" for SHT_ANDROID_RELR/SHT_RELR sections.
The behavior was introduced in D47919 and revealed in D84330.

But "SHT_ANDROID_RELR" has a different value from "SHT_RELR".
Also, "SHT_ANDROID_REL/SHT_ANDROID_RELA" are printed as "ANDROID_REL/ANDROID_RELA",
what makes the handling of the "SHT_ANDROID_RELR" inconsistent.

This patch makes llvm-readelf to print "ANDROID_RELR" instead of "RELR".

Differential revision: https://reviews.llvm.org/D84393
llvm/test/tools/llvm-readobj/ELF/section-types.test
llvm/tools/llvm-readobj/ELFDumper.cpp