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