[lto][patch] Fix statically linking libc when using the linker plugin
Diego Novillo
dnovillo@google.com
Wed Oct 7 20:02:00 GMT 2009
On Wed, Oct 7, 2009 at 10:46, Rafael Espindola <espindola@google.com> wrote:
> gcc/
> 2009-10-07 Rafael Avila de Espindola <espindola@google.com>
>
> * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
> being statically linked.
>
> lto-plugin/
> 2009-10-07 Rafael Avila de Espindola <espindola@google.com>
>
> * lto-plugin.c (add_input_library): New.
> (all_symbols_read_handler): Use add_input_library for items that
> start with -l.
> (process_option): Fit in 80 columns.
> (onload): Handle LDPT_ADD_INPUT_LIBRARY.
The gcc.c change looks fine. The lto-plugin.c looks OK to me, but
you'll need an OK from Cary.
Diego.
More information about the Gcc-patches
mailing list