Bug gas/1948

* symbols.c (colon): Also check if now_seg is bss_section when a symbol
	is being redefined.
This commit is contained in:
Dave Anglin
2005-12-05 17:00:36 +00:00
parent be01d3433f
commit b3ce1bf78e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
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 <arnoldm@sourceware.org>
* config/tc-z80.c (emit_ldreg): fix bug in ld rr,<xx>

View File

@ -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. */