diff options
Diffstat (limited to 'gcc-4.6/gcc/collect2.c')
-rw-r--r-- | gcc-4.6/gcc/collect2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/collect2.c b/gcc-4.6/gcc/collect2.c index 25b1f5554..dd083ac34 100644 --- a/gcc-4.6/gcc/collect2.c +++ b/gcc-4.6/gcc/collect2.c @@ -1077,6 +1077,7 @@ main (int argc, char **argv) { static const char *const ld_suffix = "ld"; static const char *const gold_suffix = "ld.gold"; + static const char *const mcld_suffix = "ld.mcld"; static const char *const bfd_ld_suffix = "ld.bfd"; static const char *const plugin_ld_suffix = PLUGIN_LD; static const char *const real_ld_suffix = "real-ld"; @@ -1099,6 +1100,8 @@ main (int argc, char **argv) concat(target_machine, "-", ld_suffix, NULL); const char *const full_gold_suffix = concat (target_machine, "-", gold_suffix, NULL); + const char *const full_mcld_suffix = + concat (target_machine, "-", mcld_suffix, NULL); const char *const full_bfd_ld_suffix = concat (target_machine, "-", bfd_ld_suffix, NULL); const char *const full_plugin_ld_suffix = @@ -1118,6 +1121,7 @@ main (int argc, char **argv) #else const char *const full_ld_suffix = ld_suffix; const char *const full_gold_suffix = gold_suffix; + const char *const full_mcld_suffix = mcld_suffix; const char *const full_bfd_ld_suffix = bfd_ld_suffix; const char *const full_plugin_ld_suffix = plugin_ld_suffix; const char *const full_nm_suffix = nm_suffix; @@ -1145,6 +1149,7 @@ main (int argc, char **argv) DFLT_LINKER, PLUGIN_LINKER, GOLD_LINKER, + MCLD_LINKER, BFD_LINKER } selected_linker = DFLT_LINKER; @@ -1235,6 +1240,8 @@ main (int argc, char **argv) } else if (! strcmp (argv[i], "-use-gold")) selected_linker = GOLD_LINKER; + else if (! strcmp (argv[i], "-use-mcld")) + selected_linker = MCLD_LINKER; else if (! strcmp (argv[i], "-use-ld")) selected_linker = BFD_LINKER; @@ -1349,6 +1356,9 @@ main (int argc, char **argv) case GOLD_LINKER: ld_file_name = find_a_file (&cpath, gold_suffix); break; + case MCLD_LINKER: + ld_file_name = find_a_file (&cpath, mcld_suffix); + break; case BFD_LINKER: ld_file_name = find_a_file (&cpath, bfd_ld_suffix); break; @@ -1368,6 +1378,9 @@ main (int argc, char **argv) case GOLD_LINKER: ld_file_name = find_a_file (&path, full_gold_suffix); break; + case MCLD_LINKER: + ld_file_name = find_a_file (&path, full_mcld_suffix); + break; case BFD_LINKER: ld_file_name = find_a_file (&path, full_bfd_ld_suffix); break; @@ -1400,6 +1413,7 @@ main (int argc, char **argv) case DFLT_LINKER: s = ld_suffix; break; case PLUGIN_LINKER: s = plugin_ld_suffix; break; case GOLD_LINKER: s = gold_suffix; break; + case MCLD_LINKER: s = mcld_suffix; break; case BFD_LINKER: s = bfd_ld_suffix; break; } notice (" %s\n", s); @@ -1417,6 +1431,7 @@ main (int argc, char **argv) case DFLT_LINKER: s = full_ld_suffix; break; case PLUGIN_LINKER: s = full_plugin_ld_suffix; break; case GOLD_LINKER: s = full_gold_suffix; break; + case MCLD_LINKER: s = full_mcld_suffix; break; case BFD_LINKER: s = full_bfd_ld_suffix; break; } notice (" %s\n", s); |