diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-26 17:15:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-26 17:15:22 +0000 |
commit | 60938e80e69ba5182cdd924b757d783c43637104 (patch) | |
tree | ba3f7708e0e6f956a044780c6c155cc959bf945d /gas/read.c | |
parent | 6156ef10ad0d05611bb9f6d05d79ab0e02ddc8ad (diff) | |
download | gdb-60938e80e69ba5182cdd924b757d783c43637104.zip gdb-60938e80e69ba5182cdd924b757d783c43637104.tar.gz 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |