[all-commits] [llvm/llvm-project] ee068a: [llvm-readelf] - Do not treat SHT_ANDROID_RELR sec...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jul 28 01:25:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ee068aafbc5c6722158d5113290a211503e1cfe4
      https://github.com/llvm/llvm-project/commit/ee068aafbc5c6722158d5113290a211503e1cfe4
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/section-types.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list