diff --git a/gold/ChangeLog b/gold/ChangeLog index 42da4dac36..a76fed941a 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2015-12-10 H.J. Lu + + PR ld/19317 + * symtab.cc (Symbol_table::add_from_relobj): Don't complain + plugin needed to handle slim lto object for relocatable link. + 2015-12-09 Alan Modra * powerpc.cc (Target_powerpc::Relocate::relocate): New constant diff --git a/gold/symtab.cc b/gold/symtab.cc index 22a44e0c55..f43fb4fdd0 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1171,7 +1171,8 @@ Symbol_table::add_from_relobj( const char* name = sym_names + st_name; - if (strcmp (name, "__gnu_lto_slim") == 0) + if (!parameters->options().relocatable() + && strcmp (name, "__gnu_lto_slim") == 0) gold_info(_("%s: plugin needed to handle lto object"), relobj->name().c_str());