2010-06-01 Rafael Espindola <espindola@google.com>
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 1 Jun 2010 19:32:27 +0000 (19:32 +0000)
committerRafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 1 Jun 2010 19:32:27 +0000 (19:32 +0000)
* 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.

gold/ChangeLog
gold/plugin.cc
include/ChangeLog
include/plugin-api.h

index 8e8493f0a4500d000d3dd8537a554de0d9ae355f..2b4e94b9168a5457b9a553ee072b3aa162619039 100644 (file)
@@ -1,3 +1,7 @@
+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
index a7bdbb53802e3640dfcd826611499c54a3feebd5..798b601e709458f14c8adbdff15da2c296cd6bc1 100644 (file)
@@ -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;
index 95a7f00510b889853b5f499c57713d39aafad71b..f6d896f085c3b40d0eb374d963dbf494154b7e30 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-01  Rafael Espindola  <espindola@google.com>
+
+       * plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME.
+
 2010-04-26  Pedro Alves  <pedro@codesourcery.com>
 
        * filenames.h (PATH_SEPARATOR): Delete.
index 572621fc374a3605cfc2591d570360f72295fb6d..582178554b3d4519fe23159276bae8e8aaefcbff 100644 (file)
@@ -260,7 +260,8 @@ enum ld_plugin_tag
   LDPT_MESSAGE,
   LDPT_GET_INPUT_FILE,
   LDPT_RELEASE_INPUT_FILE,
-  LDPT_ADD_INPUT_LIBRARY
+  LDPT_ADD_INPUT_LIBRARY,
+  LDPT_OUTPUT_NAME
 };
 
 /* The plugin transfer vector.  */
This page took 0.031984 seconds and 4 git commands to generate.