gas/
[deliverable/binutils-gdb.git] / gas / symbols.c
index b631a1d6aa4eea8a0363209e583c51202ac397f0..252cfcef4eca8a5c39c25c9d08a763fd181090e3 100644 (file)
@@ -2184,6 +2184,12 @@ S_SET_EXTERNAL (symbolS *s)
                     _("section symbols are already global"));
       return;
     }
+  if (S_GET_SEGMENT (s) == reg_section)
+    {
+      as_bad ("can't make register symbol `%s' global",
+             S_GET_NAME (s));
+      return;
+    }
   s->bsym->flags |= BSF_GLOBAL;
   s->bsym->flags &= ~(BSF_LOCAL | BSF_WEAK);
 
This page took 0.025029 seconds and 4 git commands to generate.