diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-02-24 20:11:05 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2005-02-24 20:11:05 +0000 |
commit | 5a1bc20e547a550a8da6eb51ab9a3512cc0b0273 (patch) | |
tree | 5a835ce9ab5f28de1da5ddfcc952821bff58cb7b /ld/ldfile.c | |
parent | fbf09ceb062225b40de16b9eac88c76b623ca2ea (diff) | |
download | binutils-redhat-5a1bc20e547a550a8da6eb51ab9a3512cc0b0273.tar.gz |
* ldfile.c: Remove GNU960 conditional code.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/lnk960.em: Likewise.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r-- | ld/ldfile.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c index 25d53e0358..a073e88463 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -507,61 +507,6 @@ ldfile_open_command_file (const char *name) saved_script_handle = ldlex_input_stack; } -#ifdef GNU960 -static char * -gnu960_map_archname (char *name) -{ - struct tabentry { char *cmd_switch; char *arch; }; - static struct tabentry arch_tab[] = - { - "", "", - "KA", "ka", - "KB", "kb", - "KC", "mc", /* Synonym for MC */ - "MC", "mc", - "CA", "ca", - "SA", "ka", /* Functionally equivalent to KA */ - "SB", "kb", /* Functionally equivalent to KB */ - NULL, "" - }; - struct tabentry *tp; - - for (tp = arch_tab; tp->cmd_switch != NULL; tp++) - { - if (! strcmp (name,tp->cmd_switch)) - break; - } - - if (tp->cmd_switch == NULL) - einfo (_("%P%F: unknown architecture: %s\n"), name); - - return tp->arch; -} - -void -ldfile_add_arch (char *name) -{ - search_arch_type *new = xmalloc (sizeof (search_arch_type)); - - if (*name != '\0') - { - if (ldfile_output_machine_name[0] != '\0') - { - einfo (_("%P%F: target architecture respecified\n")); - return; - } - - ldfile_output_machine_name = name; - } - - new->next = NULL; - new->name = gnu960_map_archname (name); - *search_arch_tail_ptr = new; - search_arch_tail_ptr = &new->next; -} - -#else /* not GNU960 */ - void ldfile_add_arch (const char *in_name) { @@ -581,7 +526,6 @@ ldfile_add_arch (const char *in_name) search_arch_tail_ptr = &new->next; } -#endif /* Set the output architecture. */ |