]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-hppa.c (pa_export): Weak symbols can be global.
authorJeff Law <law@redhat.com>
Wed, 14 Jun 2000 02:58:49 +0000 (02:58 +0000)
committerJeff Law <law@redhat.com>
Wed, 14 Jun 2000 02:58:49 +0000 (02:58 +0000)
gas/ChangeLog
gas/config/tc-hppa.c

index d0ddd6013d92437f6ebee22566979dc57b7f4107..f305b253e58ccd79a34b78a4497206a9ca7ace95 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jun 13 20:58:28 2000  Catherine Moore <clm@redhat.com>
+
+       * config/tc-hppa.c (pa_export): Weak symbols can be global.
+
 2000-06-13  H.J. Lu  <hjl@gnu.org>
 
        * configure: Regenerate.
index c57fd61ccff3e7efef2c90b4753d8d079b6a14c2..61f42c10ae736a3c64f91edc4f67974044ea8afa 100644 (file)
@@ -6466,8 +6466,13 @@ pa_export (unused)
     }
   else
     {
-      /* OK.  Set the external bits and process argument relocations.  */
+      /* OK.  Set the external bits and process argument relocations.
+         For the HP, weak and global are not mutually exclusive. 
+         S_SET_EXTERNAL will not set BSF_GLOBAL if WEAK is set.
+         Call S_SET_EXTERNAL to get the other processing.  Manually
+         set BSF_GLOBAL when we get back.  */
       S_SET_EXTERNAL (symbol);
+      symbol_get_bfdsym (symbol)->flags |= BSF_GLOBAL;
       p = input_line_pointer;
       *p = c;
       if (!is_end_of_statement ())