From 41a0ed225b34c80c48cdf4842f40a84177bee3b2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 10 Dec 1996 16:38:22 +0000 Subject: [PATCH] * config/tc-mips.c (mips16_extended_frag): Give an error for an attempt to use a non absolute symbol in an extending frag. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 5ac491154d0..b6bb01d874d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 10 11:37:14 1996 Ian Lance Taylor + + * config/tc-mips.c (mips16_extended_frag): Give an error for an + attempt to use a non absolute symbol in an extending frag. + Mon Dec 9 16:48:20 1996 Jeffrey A Law (law@cygnus.com) * config/tc-mn10200.c: Flesh out assembler support for MN10200. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 954d047052d..86dfc963775 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9184,6 +9184,8 @@ mips16_extended_frag (fragp, sec, stretch) return 1; } } + else if (symsec != absolute_section && sec != NULL) + as_bad_where (fragp->fr_file, fragp->fr_line, "unsupported relocation"); if ((val & ((1 << op->shift) - 1)) != 0 || val < (mintiny << op->shift) -- 2.30.2