summaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2005-12-05 17:00:36 +0000
committerDave Anglin <dave.anglin@nrc.ca>2005-12-05 17:00:36 +0000
commite9c88a65c77b8b08d558ac528790a841eb9e4484 (patch)
treefdcf7741d23d533d47e046d8ed5b61f8334bab9a /gas/symbols.c
parentd3907d489f0b68049c73d609217333a39fb4f377 (diff)
downloadbinutils-redhat-e9c88a65c77b8b08d558ac528790a841eb9e4484.tar.gz
Bug gas/1948
* symbols.c (colon): Also check if now_seg is bss_section when a symbol is being redefined.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index f6dafcd86b..8e3d492c71 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -376,6 +376,7 @@ colon (/* Just seen "x:" - rattle symbols & frags. */
&& S_IS_EXTERNAL (symbolP))
|| S_GET_SEGMENT (symbolP) == bss_section)
&& (now_seg == data_section
+ || now_seg == bss_section
|| now_seg == S_GET_SEGMENT (symbolP)))
{
/* Select which of the 2 cases this is. */