diff options
Diffstat (limited to 'gas/config/tc-xc16x.c')
-rw-r--r-- | gas/config/tc-xc16x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-xc16x.c b/gas/config/tc-xc16x.c index 7d89a37..12d9070 100644 --- a/gas/config/tc-xc16x.c +++ b/gas/config/tc-xc16x.c @@ -283,13 +283,12 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) arelent *rel; bfd_reloc_code_real_type r_type; - if (fixp->fx_addsy && fixp->fx_subsy) + if (fixp->fx_subsy) { if ((S_GET_SEGMENT (fixp->fx_addsy) != S_GET_SEGMENT (fixp->fx_subsy)) || S_GET_SEGMENT (fixp->fx_addsy) == undefined_section) { - as_bad_where (fixp->fx_file, fixp->fx_line, - _("Difference of symbols in different sections is not supported")); + as_bad_subtract (fixp); return NULL; } } |