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

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