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