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

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