aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-03-27 19:13:55 +0000
committerNick Clifton <nickc@redhat.com>2001-03-27 19:13:55 +0000
commit775cf8916376ff8a3b7b5ab8f618a3c519729a5f (patch)
tree2056a7f6f4044212451da155e70c6f470b8e3231 /gas
parent397b41add9155101df173e651248f754c6f7b5a9 (diff)
downloadgdb-775cf8916376ff8a3b7b5ab8f618a3c519729a5f.zip
gdb-775cf8916376ff8a3b7b5ab8f618a3c519729a5f.tar.gz
gdb-775cf8916376ff8a3b7b5ab8f618a3c519729a5f.tar.bz2
(for COFF) default symbols to being local.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/read.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 93456eb..5cf8175 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-27 Nick Papadonis <nick@coelacanth.com>
+
+ * read.c (equals): (for COFF) default symbols to being local.
+
2001-03-27 Hans-Peter Nilsson <hp@axis.com>
* configure.in (cris-*-*): Change default emulation to criself.
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);
}