summaryrefslogtreecommitdiffstats
path: root/source/d/binutils/patches/binutils-readelf-other-sym-info.patch
blob: f45bfe34094644483b4f3c3c76762c474f6a4b30 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- ./binutils/readelf.c.orig	2024-01-28 18:00:00.000000000 -0600
+++ ./binutils/readelf.c	2024-01-29 13:46:17.699015450 -0600
@@ -13680,12 +13680,13 @@
       unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
 
       printf (" %-7s", get_symbol_visibility (vis));
-
+#if 0
       /* Check to see if any other bits in the st_other field are set.
 	 FIXME: Displaying this information here disrupts the layout
 	 of the table being generated.  */
       if (psym->st_other ^ vis)
 	printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
+#endif
     }
 
   bool is_special;
@@ -13770,6 +13771,16 @@
 		version_string);
     }
 
+#if 1
+    {
+      unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
+
+      /* Check to see if any other bits in the st_other field are set.  */
+      if (psym->st_other ^ vis)
+       printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
+    }
+#endif
+
   putchar ('\n');
 
   if (ELF_ST_BIND (psym->st_info) == STB_LOCAL