* symbols.c (S_IS_LOCAL): All symbols in reg_section are local.
authorIan Lance Taylor <ian@airs.com>
Wed, 27 Sep 1995 20:21:07 +0000 (20:21 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 27 Sep 1995 20:21:07 +0000 (20:21 +0000)
gas/ChangeLog
gas/symbols.c

index f3257520107d9948da13841579929d981f6a29dc..b87d8f0370b9e3df5a71c23fba1147eb860e6a31 100644 (file)
@@ -1,5 +1,7 @@
 Wed Sep 27 12:53:58 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * symbols.c (S_IS_LOCAL): All symbols in reg_section are local.
+
        * config/tc-ppc.h (OBJ_XCOFF): Define if OBJ_COFF and not TE_PE.
        Change OBJ_COFF checks to check OBJ_XCOFF instead.
        (TARGET_FORMAT): Fully parenthesize.
index 7645cedf1288bb63651caeff8ed6feb60489dd3c..3e7b73efee282a16e12ac6def8226c1d10702294 100644 (file)
@@ -165,7 +165,7 @@ symbol_create (name, segment, valu, frag)
  */
 symbolS *
 colon (sym_name)               /* just seen "x:" - rattle symbols & frags */
-     register char *sym_name;  /* symbol name, as a cannonical string */
+     const char *sym_name;     /* symbol name, as a cannonical string */
      /* We copy this string: OK to alter later. */
 {
   register symbolS *symbolP;   /* symbol we are working with */
@@ -1271,6 +1271,9 @@ S_IS_LOCAL (s)
   if (flags & BSF_LOCAL && flags & BSF_GLOBAL)
     abort ();
 
+  if (bfd_get_section (s->bsym) == reg_section)
+    return 1;
+
   name = S_GET_NAME (s);
   return (name != NULL
          && ! S_IS_DEBUG (s)
This page took 0.034988 seconds and 4 git commands to generate.