aboutsummaryrefslogtreecommitdiff
path: root/gold/gc.h
diff options
context:
space:
mode:
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 18c09a6..f61a2f6 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);