From b54788f893981969adb5e98b9e1dbe9588dc0cfd Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 4 Nov 2005 19:45:25 +0000 Subject: gas/ChangeLog: * read.c (s_weakref): Do not permit redefinitions. * symbols.c (colon): Do not permit redefinitions of equated symbols. gas/testsuite/ChangeLog: * gas/all/gas.exp: Remove weakref xfail. Run weakref4.s. * gas/all/weakref1.s: Move redefinition bits to... * gas/all/weakref4.s: ... new file. * gas/all/weakref1.d: Remove command moved to weakref1u. Adjust remaining command for leading tabs. Regenerate. * gas/all/weakref1l.d: Regenerate. * gas/all/weakref1u.d: Likewise. * gas/all/wealref1w.d: Likewise. --- gas/symbols.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/symbols.c') diff --git a/gas/symbols.c b/gas/symbols.c index c42cd7c..e8c110c 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -332,7 +332,8 @@ colon (/* Just seen "x:" - rattle symbols & frags. */ local_symbol_set_frag (locsym, frag_now); locsym->lsy_value = frag_now_fix (); } - else if (!S_IS_DEFINED (symbolP) || S_IS_COMMON (symbolP)) + else if (!(S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP)) + || S_IS_COMMON (symbolP)) { if (S_GET_VALUE (symbolP) == 0) { -- cgit v1.1