[PATCH] D84393: [llvm-readelf] - Do not treat SHT_ANDROID_RELR sections the same as SHT_RELR.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 01:25:18 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGee068aafbc5c: [llvm-readelf] - Do not treat SHT_ANDROID_RELR sections the same as SHT_RELR. (authored by grimar).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84393/new/

https://reviews.llvm.org/D84393

Files:
  llvm/test/tools/llvm-readobj/ELF/section-types.test
  llvm/tools/llvm-readobj/ELFDumper.cpp


Index: llvm/tools/llvm-readobj/ELFDumper.cpp
===================================================================
--- llvm/tools/llvm-readobj/ELFDumper.cpp
+++ llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -3757,11 +3757,6 @@
   if (Name == "SHT_SYMTAB_SHNDX")
     return "SYMTAB SECTION INDICES";
 
-  // The SHT_ANDROID_RELR is special, all other SHT_ANDROID_* types are handled
-  // in the common block below.
-  if (Name == "SHT_ANDROID_RELR")
-    return "RELR";
-
   if (Name.startswith("SHT_"))
     return Name.drop_front(4).str();
   return getSectionTypeOffsetString(Type);
Index: llvm/test/tools/llvm-readobj/ELF/section-types.test
===================================================================
--- llvm/test/tools/llvm-readobj/ELF/section-types.test
+++ llvm/test/tools/llvm-readobj/ELF/section-types.test
@@ -110,7 +110,7 @@
 # GNU-NEXT: relr                    RELR
 # GNU-NEXT: android_rel             ANDROID_REL
 # GNU-NEXT: android_rela            ANDROID_RELA
-# GNU-NEXT: android_relr            RELR
+# GNU-NEXT: android_relr            ANDROID_RELR
 # GNU-NEXT: llvm_odrtab             LLVM_ODRTAB
 # GNU-NEXT: linker_options          LLVM_LINKER_OPTIONS
 # GNU-NEXT: llvm_call_graph_profile LLVM_CALL_GRAPH_PROFILE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84393.281137.patch
Type: text/x-patch
Size: 1239 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/da702cf1/attachment.bin>


More information about the llvm-commits mailing list