2009-08-12 Sriraman Tallam <tmsriram@google.com>

* icf.cc (Icf::find_identical_sections): Issue a warning when a
	symbol in the --keep-unique list is not found.
This commit is contained in:
Sriraman Tallam 2009-08-13 00:03:43 +00:00
parent 46c554ccf2
commit ef5e0cb158
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-08-12 Sriraman Tallam <tmsriram@google.com>
* icf.cc (Icf::find_identical_sections): Issue a warning when a
symbol in the --keep-unique list is not found.
2009-08-12 Sriraman Tallam <tmsriram@google.com>
* icf.cc (Icf::find_identical_sections): Unfold symbols that have

View File

@ -606,9 +606,12 @@ Icf::find_identical_sections(const Input_objects* input_objects,
{
const char* name = p->c_str();
Symbol* sym = symtab->lookup(name);
if (sym != NULL
&& sym->source() == Symbol::FROM_OBJECT
&& !sym->object()->is_dynamic())
if (sym == NULL)
{
gold_warning(_("Could not find symbol %s to unfold\n"), name);
}
else if (sym->source() == Symbol::FROM_OBJECT
&& !sym->object()->is_dynamic())
{
Object* obj = sym->object();
bool is_ordinary;