diff options
author | Sriraman Tallam <tmsriram@google.com> | 2010-01-04 19:08:39 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2010-01-04 19:08:39 +0000 |
commit | 55a2bb35466651972b102f5f8b5ec53a17be5b55 (patch) | |
tree | 21a1fd65237f9ea4601646bc0e4537b45e02ba9a /gold/gc.h | |
parent | b3f41522568f7617d9452eafe589d0c2ca6b4e6e (diff) | |
download | gdb-55a2bb35466651972b102f5f8b5ec53a17be5b55.zip gdb-55a2bb35466651972b102f5f8b5ec53a17be5b55.tar.gz gdb-55a2bb35466651972b102f5f8b5ec53a17be5b55.tar.bz2 |
* 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |