aboutsummaryrefslogtreecommitdiff
path: root/gold/icf.cc
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2009-08-13 00:03:43 +0000
committerSriraman Tallam <tmsriram@google.com>2009-08-13 00:03:43 +0000
commitef5e0cb158fe57480e963c022879ccf50bf1f335 (patch)
treef164995d0605d3fe1276e668f303d3b7240cb537 /gold/icf.cc
parent46c554ccf245d86f098882733d562368527c6fe0 (diff)
downloadgdb-ef5e0cb158fe57480e963c022879ccf50bf1f335.zip
gdb-ef5e0cb158fe57480e963c022879ccf50bf1f335.tar.gz
gdb-ef5e0cb158fe57480e963c022879ccf50bf1f335.tar.bz2
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.
Diffstat (limited to 'gold/icf.cc')
-rw-r--r--gold/icf.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gold/icf.cc b/gold/icf.cc
index 6f95922..411cf2e 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;