X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fsom.c;h=0c9e1b79f9c75108811e500eb7352c2f72d86203;hb=f29ba312286c54e1b013a5adf42c58fd4642bf56;hp=c1195c9a10ad9e53c7372405ae650e096b562710;hpb=580a09db88078d7726243d4dac1af50fa41af931;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/som.c b/bfd/som.c index c1195c9a10..0c9e1b79f9 100644 --- a/bfd/som.c +++ b/bfd/som.c @@ -5355,11 +5355,30 @@ som_decode_symclass (asymbol *symbol) if (bfd_is_com_section (symbol->section)) return 'C'; if (bfd_is_und_section (symbol->section)) - return 'U'; + { + if (symbol->flags & BSF_WEAK) + { + /* If weak, determine if it's specifically an object + or non-object weak. */ + if (symbol->flags & BSF_OBJECT) + return 'v'; + else + return 'w'; + } + else + return 'U'; + } if (bfd_is_ind_section (symbol->section)) return 'I'; if (symbol->flags & BSF_WEAK) - return 'W'; + { + /* If weak, determine if it's specifically an object + or non-object weak. */ + if (symbol->flags & BSF_OBJECT) + return 'V'; + else + return 'W'; + } if (!(symbol->flags & (BSF_GLOBAL | BSF_LOCAL))) return '?';