diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2005-11-04 19:45:25 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2005-11-04 19:45:25 +0000 |
commit | b54788f893981969adb5e98b9e1dbe9588dc0cfd (patch) | |
tree | 166f33af95b065b288b7045abf8ade0aa8426319 /gas/symbols.c | |
parent | 384a9dda99bba1f6e95e154df7450b580a2453e3 (diff) | |
download | fsf-binutils-gdb-b54788f893981969adb5e98b9e1dbe9588dc0cfd.zip fsf-binutils-gdb-b54788f893981969adb5e98b9e1dbe9588dc0cfd.tar.gz fsf-binutils-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.c | 3 |
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) { |