From: Sriraman Tallam Date: Thu, 13 Aug 2009 00:03:43 +0000 (+0000) Subject: 2009-08-12 Sriraman Tallam X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef5e0cb158fe57480e963c022879ccf50bf1f335;p=binutils-gdb.git 2009-08-12 Sriraman Tallam * icf.cc (Icf::find_identical_sections): Issue a warning when a symbol in the --keep-unique list is not found. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 0f97482c2e5..14709bfe23e 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-08-12 Sriraman Tallam + + * 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 * icf.cc (Icf::find_identical_sections): Unfold symbols that have diff --git a/gold/icf.cc b/gold/icf.cc index 6f9592279c7..411cf2e2344 100644 --- a/gold/icf.cc +++ b/gold/icf.cc @@ -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;