2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gas / symbols.c
index 84f394cd09e1f1a5998a30b2cd5a466658e313af..7e4f982f388dc2529550374975e25142ebf49f4c 100644 (file)
@@ -2191,12 +2191,14 @@ S_SET_EXTERNAL (symbolS *s)
                     _("section symbols are already global"));
       return;
     }
+#ifndef TC_GLOBAL_REGISTER_SYMBOL_OK
   if (S_GET_SEGMENT (s) == reg_section)
     {
       as_bad ("can't make register symbol `%s' global",
              S_GET_NAME (s));
       return;
     }
+#endif
   s->bsym->flags |= BSF_GLOBAL;
   s->bsym->flags &= ~(BSF_LOCAL | BSF_WEAK);
 
This page took 0.023597 seconds and 4 git commands to generate.