From: Dave Anglin Date: Mon, 5 Dec 2005 17:00:36 +0000 (+0000) Subject: Bug gas/1948 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3ce1bf78e82453aa76e77b95abbd676caa3a7ab;p=binutils-gdb.git Bug gas/1948 * symbols.c (colon): Also check if now_seg is bss_section when a symbol is being redefined. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d4132b7b978..4bd00a34b5e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2005-12-05 John David Anglin + + Bug gas/1948 + * symbols.c (colon): Also check if now_seg is bss_section when a symbol + is being redefined. + 2005-12-02 Arnold Metselaar * config/tc-z80.c (emit_ldreg): fix bug in ld rr, diff --git a/gas/symbols.c b/gas/symbols.c index f6dafcd86b2..8e3d492c71b 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. */