summaryrefslogtreecommitdiff
path: root/gold/gc.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2010-01-04 19:08:39 +0000
committerSriraman Tallam <tmsriram@google.com>2010-01-04 19:08:39 +0000
commit55a2bb35466651972b102f5f8b5ec53a17be5b55 (patch)
tree21a1fd65237f9ea4601646bc0e4537b45e02ba9a /gold/gc.h
parentb3f41522568f7617d9452eafe589d0c2ca6b4e6e (diff)
* gc.h (gc_process_relocs): Call is_section_foldable_candidate to
check for .text or .gnu.linkonce.t sections. * icf.cc (Icf::find_identical_sections): Ditto. Change the detection for mangled function name within the section name. * icf.h (is_section_foldable_candidate): New function.
Diffstat (limited to 'gold/gc.h')
-rw-r--r--gold/gc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/gc.h b/gold/gc.h
index 18c09a688d..f61a2f6813 100644
--- a/gold/gc.h
+++ b/gold/gc.h
@@ -1,6 +1,6 @@
// gc.h -- garbage collection of unused sections
-// Copyright 2009 Free Software Foundation, Inc.
+// Copyright 2009, 2010 Free Software Foundation, Inc.
// Written by Sriraman Tallam <tmsriram@google.com>.
// This file is part of gold.
@@ -163,7 +163,7 @@ gc_process_relocs(
bool is_icf_tracked = false;
if (parameters->options().icf_enabled()
- && is_prefix_of(".text.", (src_obj)->section_name(src_indx).c_str()))
+ && is_section_foldable_candidate(src_obj->section_name(src_indx).c_str()))
{
is_icf_tracked = true;
Section_id src_id(src_obj, src_indx);