aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-02 01:55:28 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-02 01:55:28 +0000
commit9c44af609b15dbd2bb1d7d168f54444b8bb1ad3a (patch)
tree84c23fec87adfb6173d0cb1f59b5e18758ed164b
parent903612a2f4e8cd368b94e12ee701cd72c2933477 (diff)
downloadgdb-9c44af609b15dbd2bb1d7d168f54444b8bb1ad3a.zip
gdb-9c44af609b15dbd2bb1d7d168f54444b8bb1ad3a.tar.gz
gdb-9c44af609b15dbd2bb1d7d168f54444b8bb1ad3a.tar.bz2
* config/tc-mips.c (md_parse_option): Check for a 64 bit format
before permitting -64. * output-file.c (output_file_create): Remove duplicate bfd_perror.
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-mips.c14
2 files changed, 20 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 39aa7c3..1e7dc95 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-mips.c (md_parse_option): Check for a 64 bit format
+ before permitting -64.
+ * output-file.c (output_file_create): Remove duplicate
+ bfd_perror.
+
Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-mips.c (md_begin): If -64, create a .MIPS.options
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 8cd996d..b68a092 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -6260,7 +6260,19 @@ md_parse_option (c, arg)
break;
case OPTION_64:
- mips_64 = 1;
+ {
+ const char **list, **l;
+
+ list = bfd_target_list ();
+ for (l = list; *l != NULL; l++)
+ if (strcmp (*l, "elf64-bigmips") == 0
+ || strcmp (*l, "elf64-littlemips") == 0)
+ break;
+ if (*l == NULL)
+ as_fatal ("No compiled in support for 64 bit object file format");
+ free (list);
+ mips_64 = 1;
+ }
break;
default: