2024-02-05 17:21:00 +08:00
|
|
|
diff -rupN --no-dereference binutils-2.37/binutils/readelf.c binutils-2.37-new/binutils/readelf.c
|
|
|
|
|
--- binutils-2.37/binutils/readelf.c 2021-07-24 21:59:08.033910876 +0200
|
|
|
|
|
+++ binutils-2.37-new/binutils/readelf.c 2021-07-24 21:59:10.159890170 +0200
|
|
|
|
|
@@ -12616,11 +12616,13 @@ print_dynamic_symbol (Filedata *filedata
|
2020-10-08 17:29:50 +08:00
|
|
|
unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
|
|
|
|
|
|
2024-02-05 17:21:00 +08:00
|
|
|
printf (" %-7s", get_symbol_visibility (vis));
|
2020-10-08 17:29:50 +08:00
|
|
|
+#if 0
|
|
|
|
|
/* Check to see if any other bits in the st_other field are set.
|
|
|
|
|
Note - displaying this information disrupts the layout of the
|
2024-02-05 17:21:00 +08:00
|
|
|
table being generated, but for the moment this case is very rare. */
|
2020-10-08 17:29:50 +08:00
|
|
|
if (psym->st_other ^ vis)
|
|
|
|
|
printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
|
|
|
|
|
+#endif
|
|
|
|
|
}
|
2024-02-05 17:21:00 +08:00
|
|
|
printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
|
2020-10-08 17:29:50 +08:00
|
|
|
|
2024-02-05 17:21:00 +08:00
|
|
|
@@ -12670,7 +12672,17 @@ print_dynamic_symbol (Filedata *filedata
|
|
|
|
|
version_string);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- putchar ('\n');
|
2020-10-08 17:29:50 +08:00
|
|
|
+#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
|
2024-02-05 17:21:00 +08:00
|
|
|
+
|
|
|
|
|
+ putchar ('\n');
|
2020-10-08 17:29:50 +08:00
|
|
|
|
2024-02-05 17:21:00 +08:00
|
|
|
if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
|
|
|
|
|
&& section != NULL
|