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

e89428
diff -rupN --no-dereference binutils-2.37/binutils/readelf.c binutils-2.37-new/binutils/readelf.c
e89428
--- binutils-2.37/binutils/readelf.c	2021-07-24 21:59:08.033910876 +0200
e89428
+++ binutils-2.37-new/binutils/readelf.c	2021-07-24 21:59:10.159890170 +0200
e89428
@@ -12616,11 +12616,13 @@ print_dynamic_symbol (Filedata *filedata
e89428
       unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
e89428
 
e89428
       printf (" %-7s", get_symbol_visibility (vis));
e89428
+#if 0
e89428
       /* Check to see if any other bits in the st_other field are set.
e89428
 	 Note - displaying this information disrupts the layout of the
e89428
 	 table being generated, but for the moment this case is very rare.  */
e89428
       if (psym->st_other ^ vis)
e89428
 	printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
e89428
+#endif
e89428
     }
e89428
   printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
e89428
 
e89428
@@ -12670,7 +12672,17 @@ print_dynamic_symbol (Filedata *filedata
e89428
 		version_string);
e89428
     }
e89428
 
e89428
-  putchar ('\n');
e89428
+#if 1
e89428
+    {
e89428
+      unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
e89428
+
e89428
+      /* Check to see if any other bits in the st_other field are set.  */
e89428
+      if (psym->st_other ^ vis)
e89428
+	printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
e89428
+    }
e89428
+#endif
e89428
+
e89428
+    putchar ('\n');
e89428
 
e89428
   if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
e89428
       && section != NULL