aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-06 13:29:38 +0930
committerAlan Modra <amodra@gmail.com>2014-08-06 13:31:47 +0930
commit97964ab320d2fd9557ad84e6c8b7b500c518a686 (patch)
tree5be66a571a9710771ca971940ace547bb6199106 /ld/plugin.c
parentc3e11cbe51085fed6ca1c90f56611b8cbbabe3eb (diff)
downloadgdb-97964ab320d2fd9557ad84e6c8b7b500c518a686.zip
gdb-97964ab320d2fd9557ad84e6c8b7b500c518a686.tar.gz
gdb-97964ab320d2fd9557ad84e6c8b7b500c518a686.tar.bz2
PR14918, lto always links in libgcc_s.so
PR14918 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index cd6ae60..f10c273 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 (_("<no plugin>"));
+ /* 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;