summaryrefslogtreecommitdiffstats
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-10-07 14:21:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-10-07 14:21:59 +0000
commit97c4f2d9c95f8a9dcf3941010277428b3c0baf79 (patch)
tree6887c56bdb11855be8329174fe05c19961c899f2 /gas/symbols.c
parent9124fe4822e9f9bf1b746dcf987541ebb31bd67a (diff)
downloadppe42-binutils-97c4f2d9c95f8a9dcf3941010277428b3c0baf79.tar.gz
ppe42-binutils-97c4f2d9c95f8a9dcf3941010277428b3c0baf79.zip
2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
* read.c (pseudo_set): Don't allow global register symbol only if TC_GLOBAL_REGISTER_SYMBOL_OK is undefined. * symbols.c (S_SET_EXTERNAL): Likewise. * config/tc-mmix.h (TC_GLOBAL_REGISTER_SYMBOL_OK): Defined. * doc/internals.texi: Document TC_GLOBAL_REGISTER_SYMBOL_OK.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 84f394cd09..7e4f982f38 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);
OpenPOWER on IntegriCloud