aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2005-11-04 19:45:25 +0000
committerAlexandre Oliva <aoliva@redhat.com>2005-11-04 19:45:25 +0000
commitb54788f893981969adb5e98b9e1dbe9588dc0cfd (patch)
tree166f33af95b065b288b7045abf8ade0aa8426319 /gas/symbols.c
parent384a9dda99bba1f6e95e154df7450b580a2453e3 (diff)
downloadgdb-b54788f893981969adb5e98b9e1dbe9588dc0cfd.zip
gdb-b54788f893981969adb5e98b9e1dbe9588dc0cfd.tar.gz
gdb-b54788f893981969adb5e98b9e1dbe9588dc0cfd.tar.bz2
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.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c3
1 files changed, 2 insertions, 1 deletions
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)
{