aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-02-24 20:11:05 +0000
committerBen Elliston <bje@au.ibm.com>2005-02-24 20:11:05 +0000
commit0ef622cbcfcadaf9484a6e4e06ea8757dce510e3 (patch)
treedfd31e9a468d2623b791c7f8f683f70c8f89af5c /ld/ldfile.c
parent60b779bff6791dc45ae0ba6c7a9cc1d0579d6f6b (diff)
downloadgdb-0ef622cbcfcadaf9484a6e4e06ea8757dce510e3.zip
gdb-0ef622cbcfcadaf9484a6e4e06ea8757dce510e3.tar.gz
gdb-0ef622cbcfcadaf9484a6e4e06ea8757dce510e3.tar.bz2
* 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.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 25d53e0..a073e88 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. */