aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-04-26 17:15:22 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-04-26 17:15:22 +0000
commit60938e80e69ba5182cdd924b757d783c43637104 (patch)
treeba3f7708e0e6f956a044780c6c155cc959bf945d /gas/read.c
parent6156ef10ad0d05611bb9f6d05d79ab0e02ddc8ad (diff)
downloadfsf-binutils-gdb-60938e80e69ba5182cdd924b757d783c43637104.zip
fsf-binutils-gdb-60938e80e69ba5182cdd924b757d783c43637104.tar.gz
fsf-binutils-gdb-60938e80e69ba5182cdd924b757d783c43637104.tar.bz2
gas/
2005-04-26 H.J. Lu <hongjiu.lu@intel.com> * config/obj-multi.h (FAKE_LABEL_NAME): Defined. * read.c (pseudo_set): Disallow symbol set to common symbol. PR 857 * write.c (write_object_file): Report common symbol name when disallowing local symbol set to common symbol. (adjust_reloc_syms): Disallow local symbol set to undefined symbol. gas/testsuite/ 2005-04-26 H.J. Lu <hongjiu.lu@intel.com> * gas/all/assign.s: Make `x' and `y' global.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index b83f140..54ac844 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3301,6 +3301,10 @@ pseudo_set (symbolS *symbolP)
{
symbolS *s = exp.X_add_symbol;
+ if (S_IS_COMMON (s))
+ as_bad (_("`%s' can't be equated to common symbol '%s'"),
+ S_GET_NAME (symbolP), S_GET_NAME (s));
+
S_SET_SEGMENT (symbolP, seg);
S_SET_VALUE (symbolP, exp.X_add_number + S_GET_VALUE (s));
symbol_set_frag (symbolP, symbol_get_frag (s));