From 409141842e9df6456569919f0bccfa11f7118b0e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 26 Sep 2000 01:45:26 +0000 Subject: Make weak symbols SS_UNIVERSAL (ie. global) --- bfd/som.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/som.c') diff --git a/bfd/som.c b/bfd/som.c index b3ad997..ffd6589 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. */ -- cgit v1.1