From: Alan Modra Date: Wed, 6 Aug 2014 03:59:38 +0000 (+0930) Subject: PR14918, lto always links in libgcc_s.so X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97964ab320d2fd9557ad84e6c8b7b500c518a686;p=binutils-gdb.git PR14918, lto always links in libgcc_s.so PR14918 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index eca6638e27c..b34d360e0e8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2014-08-06 H.J. Lu + + PR14918 + * plugin.c (plugin_opt_plugin_arg): Drop --pass-through. + 2014-08-05 Alan Modra * Makefile.in: Regenerate. diff --git a/ld/plugin.c b/ld/plugin.c index cd6ae60c9f1..f10c2730310 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -217,6 +217,17 @@ plugin_opt_plugin_arg (const char *arg) if (!last_plugin) return set_plugin_error (_("")); + /* Ignore -pass-through= from GCC driver. */ + if (*arg == '-') + { + const char *p = arg + 1; + + if (*p == '-') + ++p; + if (strncmp (p, "pass-through=", 13) == 0) + return 0; + } + newarg = xmalloc (sizeof *newarg); newarg->arg = arg; newarg->next = NULL;