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

a6dfc0
diff -rup binutils.orig/binutils/readelf.c binutils-2.29/binutils/readelf.c
a6dfc0
--- binutils.orig/binutils/readelf.c	2017-12-12 16:24:19.571221194 +0000
a6dfc0
+++ binutils-2.29/binutils/readelf.c	2017-12-12 16:27:26.997979803 +0000
a6dfc0
@@ -11018,12 +11018,14 @@ print_dynamic_symbol (bfd_vma si, unsign
a6dfc0
       unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
a6dfc0
 
a6dfc0
       printf (" %-7s",  get_symbol_visibility (vis));
a6dfc0
+#if 0
a6dfc0
       /* Check to see if any other bits in the st_other field are set.
a6dfc0
 	 Note - displaying this information disrupts the layout of the
a6dfc0
 	 table being generated, but for the moment this case is very
a6dfc0
 	 rare.  */
a6dfc0
       if (psym->st_other ^ vis)
a6dfc0
 	printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
a6dfc0
+#endif
a6dfc0
     }
a6dfc0
 
a6dfc0
   printf (" %3.3s ", get_symbol_index_type (filedata, psym->st_shndx));
a6dfc0
@@ -11031,6 +11033,15 @@ print_dynamic_symbol (bfd_vma si, unsign
a6dfc0
     print_symbol (25, GET_DYNAMIC_NAME (psym->st_name));
a6dfc0
   else
a6dfc0
     printf (_(" <corrupt: %14ld>"), psym->st_name);
a6dfc0
+#if 1
a6dfc0
+    {
a6dfc0
+      unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
a6dfc0
+
a6dfc0
+      /* Check to see if any other bits in the st_other field are set.  */
a6dfc0
+      if (psym->st_other ^ vis)
a6dfc0
+	printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
a6dfc0
+    }
a6dfc0
+#endif
a6dfc0
   putchar ('\n');
a6dfc0
 }
a6dfc0
 
a6dfc0
--- binutils.orig/binutils/readelf.c	2017-12-12 16:36:21.806561149 +0000
a6dfc0
+++ binutils-2.29.1/binutils/readelf.c	2017-12-12 16:38:17.763168514 +0000
a6dfc0
@@ -11548,11 +11548,13 @@ process_symbol_table (FILE * file)
a6dfc0
 		  unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
a6dfc0
 
a6dfc0
 		  printf (" %-7s", get_symbol_visibility (vis));
a6dfc0
+#if 0
a6dfc0
 		  /* Check to see if any other bits in the st_other field are set.
a6dfc0
 		     Note - displaying this information disrupts the layout of the
a6dfc0
 		     table being generated, but for the moment this case is very rare.  */
a6dfc0
 		  if (psym->st_other ^ vis)
a6dfc0
 		    printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
a6dfc0
+#endif
a6dfc0
 		}
a6dfc0
 	      printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
a6dfc0
 	      print_symbol (25, psym->st_name < strtab_size
a6dfc0
@@ -11571,7 +11573,15 @@ process_symbol_table (FILE * file)
a6dfc0
 		    printf (sym_info == symbol_hidden ? "@%s" : "@@%s",
a6dfc0
 			    version_string);
a6dfc0
 		}
a6dfc0
+#if 1
a6dfc0
+		{
a6dfc0
+		  unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
a6dfc0
 
a6dfc0
+		  /* Check to see if any other bits in the st_other field are set.  */
a6dfc0
+		  if (psym->st_other ^ vis)
a6dfc0
+		    printf (" \t[%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
a6dfc0
+		}
a6dfc0
+#endif
a6dfc0
 	      putchar ('\n');
a6dfc0
 
a6dfc0
 	      if (ELF_ST_BIND (psym->st_info) == STB_LOCAL