Blame SOURCES/binutils-readelf-other-sym-info.patch

e0bdd4
--- binutils.orig/binutils/readelf.c	2020-07-24 15:08:30.317597020 +0100
e0bdd4
+++ binutils-2.35/binutils/readelf.c	2020-07-24 15:09:39.029155552 +0100
e0bdd4
@@ -12069,11 +12069,13 @@ print_dynamic_symbol (Filedata *filedata
e0bdd4
       unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
e0bdd4
 
e0bdd4
       printf (" %-7s", get_symbol_visibility (vis));
e0bdd4
+#if 0
e0bdd4
       /* Check to see if any other bits in the st_other field are set.
e0bdd4
 	 Note - displaying this information disrupts the layout of the
e0bdd4
 	 table being generated, but for the moment this case is very rare.  */
e0bdd4
       if (psym->st_other ^ vis)
e0bdd4
 	printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
e0bdd4
+#endif
e0bdd4
     }
e0bdd4
   printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
e0bdd4
 
e0bdd4
@@ -12112,7 +12114,17 @@ print_dynamic_symbol (Filedata *filedata
e0bdd4
 		version_string);
e0bdd4
     }
e0bdd4
 
e0bdd4
-  putchar ('\n');
e0bdd4
+#if 1
e0bdd4
+    {
e0bdd4
+      unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
e0bdd4
+
e0bdd4
+      /* Check to see if any other bits in the st_other field are set.  */
e0bdd4
+      if (psym->st_other ^ vis)
e0bdd4
+	printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
e0bdd4
+    }
e0bdd4
+#endif
e0bdd4
+
e0bdd4
+    putchar ('\n');
e0bdd4
 
e0bdd4
   if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
e0bdd4
       && section != NULL