Blame SOURCES/binutils-readelf-other-sym-info.patch
|
|
8d443f |
--- binutils.orig/binutils/readelf.c 2020-07-24 15:08:30.317597020 +0100
|
|
|
8d443f |
+++ binutils-2.35/binutils/readelf.c 2020-07-24 15:09:39.029155552 +0100
|
|
|
8d443f |
@@ -12069,11 +12069,13 @@ print_dynamic_symbol (Filedata *filedata
|
|
|
8d443f |
unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
|
|
|
8d443f |
|
|
|
8d443f |
printf (" %-7s", get_symbol_visibility (vis));
|
|
|
8d443f |
+#if 0
|
|
|
8d443f |
/* Check to see if any other bits in the st_other field are set.
|
|
|
8d443f |
Note - displaying this information disrupts the layout of the
|
|
|
8d443f |
table being generated, but for the moment this case is very rare. */
|
|
|
8d443f |
if (psym->st_other ^ vis)
|
|
|
8d443f |
printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
|
|
|
8d443f |
+#endif
|
|
|
8d443f |
}
|
|
|
8d443f |
printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
|
|
|
8d443f |
|
|
|
8d443f |
@@ -12112,7 +12114,17 @@ print_dynamic_symbol (Filedata *filedata
|
|
|
8d443f |
version_string);
|
|
|
8d443f |
}
|
|
|
8d443f |
|
|
|
8d443f |
- putchar ('\n');
|
|
|
8d443f |
+#if 1
|
|
|
8d443f |
+ {
|
|
|
8d443f |
+ unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
|
|
|
8d443f |
+
|
|
|
8d443f |
+ /* Check to see if any other bits in the st_other field are set. */
|
|
|
8d443f |
+ if (psym->st_other ^ vis)
|
|
|
8d443f |
+ printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
|
|
|
8d443f |
+ }
|
|
|
8d443f |
+#endif
|
|
|
8d443f |
+
|
|
|
8d443f |
+ putchar ('\n');
|
|
|
8d443f |
|
|
|
8d443f |
if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
|
|
|
8d443f |
&& section != NULL
|