aboutsummaryrefslogtreecommitdiff
path: root/ld
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
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')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/plugin.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index eca6638..b34d360 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR14918
+ * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
+
2014-08-05 Alan Modra <amodra@gmail.com>
* Makefile.in: Regenerate.
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;