aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 7645ced..3e7b73e 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -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)