summaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-09-26 01:45:26 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-09-26 01:45:26 +0000
commitb0d440c57e37d3d9279e919b3176d5b145a2fb23 (patch)
treef632397fbb795167bf5ddff4639a881b1293de41 /bfd/som.c
parentaa1d6b0c46db984f7dadd2d471cb113f1c6ef376 (diff)
downloadgdb-b0d440c57e37d3d9279e919b3176d5b145a2fb23.tar.gz
Make weak symbols SS_UNIVERSAL (ie. global)
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/som.c b/bfd/som.c
index b3ad9977b10..ffd65897e6a 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -4069,7 +4069,8 @@ som_bfd_derive_misc_symbol_info (abfd, sym, info)
of common symbols was handled earlier! */
if (bfd_is_und_section (sym->section))
info->symbol_scope = SS_UNSAT;
- else if (sym->flags & BSF_EXPORT && ! bfd_is_com_section (sym->section))
+ else if (sym->flags & (BSF_EXPORT | BSF_WEAK)
+ && ! bfd_is_com_section (sym->section))
info->symbol_scope = SS_UNIVERSAL;
/* Anything else which is not in the common section has scope
SS_LOCAL. */