aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-10 16:38:22 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-10 16:38:22 +0000
commit41a0ed225b34c80c48cdf4842f40a84177bee3b2 (patch)
treedabdf62092ef7ca488b6f37a145a94b1dbaa90fc /gas/config/tc-mips.c
parent3fbe064171ca48e2fafad0a454f561c07aceef7a (diff)
downloadgdb-41a0ed225b34c80c48cdf4842f40a84177bee3b2.zip
gdb-41a0ed225b34c80c48cdf4842f40a84177bee3b2.tar.gz
gdb-41a0ed225b34c80c48cdf4842f40a84177bee3b2.tar.bz2
* config/tc-mips.c (mips16_extended_frag): Give an error for an
attempt to use a non absolute symbol in an extending frag.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 954d047..86dfc96 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)