diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-12-17 16:12:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-12-17 16:12:58 +0000 |
commit | 69e2ff181dffb4072f272bc33f7430fa82ed6e57 (patch) | |
tree | 9202ba9594e368071ce5540655d75d570de8f9f7 /bfd/elf.c | |
parent | c0dea4956d5e53f80c9d3a35b6c7a42532f0fb35 (diff) | |
download | gdb-69e2ff181dffb4072f272bc33f7430fa82ed6e57.zip gdb-69e2ff181dffb4072f272bc33f7430fa82ed6e57.tar.gz gdb-69e2ff181dffb4072f272bc33f7430fa82ed6e57.tar.bz2 |
* elf.c (bfd_elf_print_symbol): Print the st_other field if it is
not zero.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |