Make weak symbols SS_UNIVERSAL (ie. global)
authorAlan Modra <amodra@gmail.com>
Tue, 26 Sep 2000 01:45:26 +0000 (01:45 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 26 Sep 2000 01:45:26 +0000 (01:45 +0000)
bfd/ChangeLog
bfd/som.c

index 7fe1c4705ca298f9a9f85002785b2ba1ad5f92ea..3dfdb8a800d7b3bdbd0eb935f169759850437b43 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-26  Steve Ellcey <sje@cup.hp.com>
+
+       * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
+       global by default.
+
 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
 
        * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
index b3ad9977b10ab97d94a485ff6b8bf885f0bd0a70..ffd65897e6ae4eea4a3ecd3e3f5ce827631427b5 100644 (file)
--- 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.  */
This page took 0.035867 seconds and 4 git commands to generate.