aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.h3
-rw-r--r--gas/config/tc-sparc.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index e6d32d6..436b975 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -247,8 +247,7 @@ extern const char *ppc_comment_chars;
|| ((FIX)->fx_subsy != NULL \
&& (S_GET_SEGMENT ((FIX)->fx_subsy) \
== S_GET_SEGMENT ((FIX)->fx_addsy))) \
- || strchr (S_GET_NAME ((FIX)->fx_addsy), '\001') != NULL \
- || strchr (S_GET_NAME ((FIX)->fx_addsy), '\002') != NULL))
+ || S_IS_LOCAL ((FIX)->fx_addsy)))
/* We must never ever try to resolve references to externally visible
symbols in the assembler, because the .o file might go into a shared
diff --git a/gas/config/tc-sparc.h b/gas/config/tc-sparc.h
index d5031f6..2f9525f 100644
--- a/gas/config/tc-sparc.h
+++ b/gas/config/tc-sparc.h
@@ -129,8 +129,7 @@ extern int elf32_sparc_force_relocation PARAMS ((struct fix *));
|| ((FIX)->fx_subsy != NULL \
&& (S_GET_SEGMENT ((FIX)->fx_subsy) \
== S_GET_SEGMENT ((FIX)->fx_addsy))) \
- || strchr (S_GET_NAME ((FIX)->fx_addsy), '\001') != NULL \
- || strchr (S_GET_NAME ((FIX)->fx_addsy), '\002') != NULL))
+ || S_IS_LOCAL ((FIX)->fx_addsy)))
#endif
#ifdef OBJ_AOUT