binutils-readelf-other-sym-info.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- binutils.orig/binutils/readelf.c 2020-07-24 15:08:30.317597020 +0100
  2. +++ binutils-2.35/binutils/readelf.c 2020-07-24 15:09:39.029155552 +0100
  3. @@ -12069,11 +12069,13 @@ print_dynamic_symbol (Filedata *filedata
  4. unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
  5. printf (" %-7s", get_symbol_visibility (vis));
  6. +#if 0
  7. /* Check to see if any other bits in the st_other field are set.
  8. Note - displaying this information disrupts the layout of the
  9. table being generated, but for the moment this case is very rare. */
  10. if (psym->st_other ^ vis)
  11. printf (" [%s] ", get_symbol_other (filedata, psym->st_other ^ vis));
  12. +#endif
  13. }
  14. printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
  15. @@ -12112,7 +12114,17 @@ print_dynamic_symbol (Filedata *filedata
  16. version_string);
  17. }
  18. - putchar ('\n');
  19. +#if 1
  20. + {
  21. + unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
  22. +
  23. + /* Check to see if any other bits in the st_other field are set. */
  24. + if (psym->st_other ^ vis)
  25. + printf (" \t[%s]", get_symbol_other (filedata, psym->st_other ^ vis));
  26. + }
  27. +#endif
  28. +
  29. + putchar ('\n');
  30. if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
  31. && section != NULL