diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-04-14 17:13:32 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-04-22 16:15:20 -0700 |
commit | 18a368063d073f4501176ca6d0a979896f11ba1c (patch) | |
tree | cba40e4b31952ec50acc2abe081b7a2361a2162e /gcc-4.9/gcc/collect2.c | |
parent | f1dea06dc38aa8375598dc0db365a82f0596edac (diff) | |
download | toolchain_gcc-18a368063d073f4501176ca6d0a979896f11ba1c.tar.gz toolchain_gcc-18a368063d073f4501176ca6d0a979896f11ba1c.tar.bz2 toolchain_gcc-18a368063d073f4501176ca6d0a979896f11ba1c.zip |
[4.9] Add mclinker support: -fuse-ld=mcld
See 06b207c97dfb0d70f1f2ef91b93b665dceae0d27,
04288e6d5db307539ffc86eff17dc7fd5a2eb973 and
6914eb3758e3c3db5f50f89da12193c22a0531c4
Change-Id: I94f901d9187c9bc3a9f2f4e24795c4bf0f3a62c0
Diffstat (limited to 'gcc-4.9/gcc/collect2.c')
-rw-r--r-- | gcc-4.9/gcc/collect2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/collect2.c b/gcc-4.9/gcc/collect2.c index f0ab6b8c8..5a2ec0b5d 100644 --- a/gcc-4.9/gcc/collect2.c +++ b/gcc-4.9/gcc/collect2.c @@ -861,6 +861,7 @@ main (int argc, char **argv) USE_PLUGIN_LD, USE_GOLD_LD, USE_BFD_LD, + USE_MCLD_LD, USE_LD_MAX } selected_linker = USE_DEFAULT_LD; static const char *const ld_suffixes[USE_LD_MAX] = @@ -868,7 +869,8 @@ main (int argc, char **argv) "ld", PLUGIN_LD_SUFFIX, "ld.gold", - "ld.bfd" + "ld.bfd", + "ld.mcld" }; static const char *const real_ld_suffix = "real-ld"; static const char *const collect_ld_suffix = "collect-ld"; @@ -1034,6 +1036,8 @@ main (int argc, char **argv) selected_linker = USE_BFD_LD; else if (strcmp (argv[i], "-fuse-ld=gold") == 0) selected_linker = USE_GOLD_LD; + else if (strcmp (argv[i], "-fuse-ld=mcld") == 0) + selected_linker = USE_MCLD_LD; #ifdef COLLECT_EXPORT_LIST /* These flags are position independent, although their order @@ -1337,7 +1341,7 @@ main (int argc, char **argv) else if (!use_collect_ld && strncmp (arg, "-fuse-ld=", 9) == 0) { - /* Do not pass -fuse-ld={bfd|gold} to the linker. */ + /* Do not pass -fuse-ld={bfd|gold|mcld} to the linker. */ ld1--; ld2--; } |