aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 29ab155..cb4c7e3 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4863,6 +4863,12 @@ equals (sym_name, reassign)
&& S_IS_DEFINED (symbolP)
&& S_GET_SEGMENT (symbolP) != reg_section)
as_bad (_("symbol `%s' already defined"), S_GET_NAME (symbolP));
+
+#ifdef OBJ_COFF
+ /* "set" symbols are local unless otherwise specified. */
+ SF_SET_LOCAL (symbolP);
+#endif /* OBJ_COFF */
+
pseudo_set (symbolP);
}