diff options
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index 84f394c..7e4f982 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -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); |