aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorCatherine Moore <clm@codesourcery.com>2016-01-25 12:39:40 -0800
committerCatherine Moore <clm@codesourcery.com>2016-01-25 12:39:40 -0800
commit00acd688caf385f38493ebd8d0a7b5f94d501a79 (patch)
treef0e148a6d2fa23ad5519f031942a3cc62d5efbfa /gas/config
parent7585b2b8b643f4f20c25374f433081aee848e71f (diff)
downloadgdb-00acd688caf385f38493ebd8d0a7b5f94d501a79.zip
gdb-00acd688caf385f38493ebd8d0a7b5f94d501a79.tar.gz
gdb-00acd688caf385f38493ebd8d0a7b5f94d501a79.tar.bz2
Avoid the use of gp-relative addressing when abicalls are in effect.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index d577774..7b34a4b 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -3464,6 +3464,12 @@ md_begin (void)
as_bad (_("-G may not be used in position-independent code"));
g_switch_value = 0;
}
+ else if (mips_abicalls)
+ {
+ if (g_switch_seen && g_switch_value != 0)
+ as_bad (_("-G may not be used with abicalls"));
+ g_switch_value = 0;
+ }
if (! bfd_set_arch_mach (stdoutput, bfd_arch_mips, file_mips_opts.arch))
as_warn (_("could not set architecture and machine"));