diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-11 06:11:45 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-11 06:11:45 +0000 |
commit | 9d83078bc4710e4ee8dd580ff19837395351e6b2 (patch) | |
tree | 75d2a3e4b3d97d765d9ec1b6f80dfeaf94644ad9 /gas/config/tc-mn10200.c | |
parent | c21e73b977f21d284eec747ca9b7c645121d5231 (diff) | |
download | fsf-binutils-gdb-9d83078bc4710e4ee8dd580ff19837395351e6b2.zip fsf-binutils-gdb-9d83078bc4710e4ee8dd580ff19837395351e6b2.tar.gz fsf-binutils-gdb-9d83078bc4710e4ee8dd580ff19837395351e6b2.tar.bz2 |
* config/tc-i960.c (line_comment_chars): Add '#'.
* config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
Diffstat (limited to 'gas/config/tc-mn10200.c')
-rw-r--r-- | gas/config/tc-mn10200.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c index ec0a930..6420694 100644 --- a/gas/config/tc-mn10200.c +++ b/gas/config/tc-mn10200.c @@ -1,5 +1,5 @@ /* tc-mn10200.c -- Assembler code for the Matsushita 10200 - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1233,6 +1233,21 @@ tc_gen_reloc (seg, fixp) arelent *reloc; reloc = (arelent *) xmalloc (sizeof (arelent)); + if (fixp->fx_subsy != NULL) + { + /* FIXME: We should resolve difference expressions if possible + here. At least this is better than silently ignoring the + subtrahend. */ + as_bad_where (fixp->fx_file, fixp->fx_line, + _("can't resolve `%s' {%s section} - `%s' {%s section}"), + fixp->fx_addsy ? S_GET_NAME (fixp->fx_addsy) : "0", + segment_name (fixp->fx_addsy + ? S_GET_SEGMENT (fixp->fx_addsy) + : absolute_section), + S_GET_NAME (fixp->fx_subsy), + segment_name (S_GET_SEGMENT (fixp->fx_addsy))); + } + reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); if (reloc->howto == (reloc_howto_type *) NULL) { |