ld -r doesn't need plugin for slim lto object

Plugin isn't required on slim lto object for relocatable link.

	PR ld/19317
	* symtab.cc (Symbol_table::add_from_relobj): Don't complain
	plugin needed to handle slim lto object for relocatable link.
This commit is contained in:
H.J. Lu 2015-12-10 11:28:48 -08:00
parent f4f4330e51
commit bebf4942b0
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-12-10 H.J. Lu <hongjiu.lu@intel.com>
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 <amodra@gmail.com>
* powerpc.cc (Target_powerpc::Relocate::relocate): New constant

View File

@ -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());