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

ddc4e9
diff -rupN --no-dereference binutils-2.39/binutils/readelf.c binutils-2.39-new/binutils/readelf.c
ddc4e9
--- binutils-2.39/binutils/readelf.c	2022-10-30 12:41:26.462023746 +0100
ddc4e9
+++ binutils-2.39-new/binutils/readelf.c	2022-10-30 12:41:27.687023752 +0100
ddc4e9
@@ -13177,11 +13177,13 @@ print_dynamic_symbol (Filedata *filedata
0c89c8
       unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
0c89c8
 
0c89c8
       printf (" %-7s", get_symbol_visibility (vis));
0c89c8
+#if 0
0c89c8
       /* Check to see if any other bits in the st_other field are set.
0c89c8
 	 Note - displaying this information disrupts the layout of the
0c89c8
 	 table being generated, but for the moment this case is very rare.  */
0c89c8
       if (psym->st_other ^ vis)
0c89c8
 	printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
0c89c8
+#endif
0c89c8
     }
0c89c8
   printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
0c89c8
 
ddc4e9
@@ -13235,7 +13237,17 @@ print_dynamic_symbol (Filedata *filedata
0c89c8
 		version_string);
0c89c8
     }
0c89c8
 
0c89c8
-  putchar ('\n');
0c89c8
+#if 1
0c89c8
+    {
0c89c8
+      unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
0c89c8
+
0c89c8
+      /* Check to see if any other bits in the st_other field are set.  */
0c89c8
+      if (psym->st_other ^ vis)
0c89c8
+	printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
0c89c8
+    }
0c89c8
+#endif
0c89c8
+
0c89c8
+    putchar ('\n');
0c89c8
 
0c89c8
   if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
0c89c8
       && section != NULL