aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-01 19:32:27 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-01 19:32:27 +0000
commit3537c84bf45bc24ceb87f64316de75940b744a90 (patch)
treeb5781dc4a1853ef13e60d68a1f98bb366bdc17de /gold
parent105b6afd921f7db737d25b712a439a3d388dbad1 (diff)
downloadfsf-binutils-gdb-3537c84bf45bc24ceb87f64316de75940b744a90.zip
fsf-binutils-gdb-3537c84bf45bc24ceb87f64316de75940b744a90.tar.gz
fsf-binutils-gdb-3537c84bf45bc24ceb87f64316de75940b744a90.tar.bz2
2010-06-01 Rafael Espindola <espindola@google.com>
* plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME. 2010-06-01 Rafael Espindola <espindola@google.com> * plugin.cc (Plugin::load): Pass the output name to the plugin.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/plugin.cc6
2 files changed, 9 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 8e8493f..2b4e94b 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,9 @@
2010-06-01 Rafael Espindola <espindola@google.com>
+ * plugin.cc (Plugin::load): Pass the output name to the plugin.
+
+2010-06-01 Rafael Espindola <espindola@google.com>
+
* plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the
visibility of symbols.
diff --git a/gold/plugin.cc b/gold/plugin.cc
index a7bdbb5..798b601 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -127,7 +127,7 @@ Plugin::load()
sscanf(ver, "%d.%d", &major, &minor);
// Allocate and populate a transfer vector.
- const int tv_fixed_size = 14;
+ const int tv_fixed_size = 15;
int tv_size = this->args_.size() + tv_fixed_size;
ld_plugin_tv *tv = new ld_plugin_tv[tv_size];
@@ -154,6 +154,10 @@ Plugin::load()
else
tv[i].tv_u.tv_val = LDPO_EXEC;
+ ++i;
+ tv[i].tv_tag = LDPT_OUTPUT_NAME;
+ tv[i].tv_u.tv_string = parameters->options().output();
+
for (unsigned int j = 0; j < this->args_.size(); ++j)
{
++i;