From f29ba312286c54e1b013a5adf42c58fd4642bf56 Mon Sep 17 00:00:00 2001 From: Dave Anglin Date: Sun, 20 Nov 2005 19:21:06 +0000 Subject: [PATCH] * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same manner as bfd_decode_symclass. --- bfd/ChangeLog | 5 +++++ bfd/som.c | 23 +++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49da6eb..57ba88a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-11-20 John David Anglin + + * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same + manner as bfd_decode_symclass. + 2005-11-18 Alan Modra * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch diff --git a/bfd/som.c b/bfd/som.c index c1195c9..0c9e1b7 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 '?'; -- 2.7.4