* elf.c (bfd_elf_print_symbol): Print the st_other field if it is
authorIan Lance Taylor <ian@airs.com>
Tue, 17 Dec 1996 16:12:58 +0000 (16:12 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 17 Dec 1996 16:12:58 +0000 (16:12 +0000)
not zero.

bfd/ChangeLog
bfd/elf.c

index df7a14806f55e44732346119a0f3193caf172253..17c196dab5b0e6ebe6ef57446d519d75df45e3ff 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 17 11:09:36 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
+       not zero.
+
 Mon Dec 16 14:38:39 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * elf.c (bfd_section_from_shdr): Don't check for reloc sections
index 70d36a59a1d7ec1b6285c2ef7b07652b24fcabba..0ea1bb836da22ed1d3bdc7524606eb002fbaa7ac 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -536,6 +536,11 @@ bfd_elf_print_symbol (ignore_abfd, filep, symbol, how)
                     (bfd_is_com_section (symbol->section)
                      ? ((elf_symbol_type *) symbol)->internal_elf_sym.st_value
                      : ((elf_symbol_type *) symbol)->internal_elf_sym.st_size));
+       /* If the st_other field is not zero, print it.  */
+       if (((elf_symbol_type *) symbol)->internal_elf_sym.st_other != 0)
+         fprintf (file, " 0x%02x",
+                  ((unsigned int)
+                   ((elf_symbol_type *) symbol)->internal_elf_sym.st_other));
        fprintf (file, " %s", symbol->name);
       }
       break;