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