[patch][rfc] Giving plugins access to gold's file views

Ian Lance Taylor iant@google.com
Tue Mar 22 16:37:00 GMT 2011


Rafael Avila de Espindola <respindola@mozilla.com> writes:

> Fixed. The two patches are attached.
>
> 2010-03-22  Rafael Ávila de Espíndola <respindola@mozilla.com>
>
> 	* plugin-api.h (ld_plugin_get_view): New.
> 	(ld_plugin_tag): Add LDPT_GET_VIEW.
> 	(ld_plugin_tv): Add tv_get_view.
>
> 2010-03-22  Rafael Ávila de Espíndola <respindola@mozilla.com>
>
> 	* plugin.cc (get_view): New.
> 	(Plugin::load): Pass get_view to the plugin.
> 	(Plugin_manager::get_view): New.


> +  *viewp = (void*) input_file->file().get_view(offset, 0, filesize, false,
> +                                               false);

Use static_cast<>.

These patches are OK with that change if they're OK with Cary.

Please also update http://gcc.gnu.org/wiki/whopr/driver .

Ian



More information about the Binutils mailing list