aboutsummaryrefslogtreecommitdiff
path: root/gold/icf.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2009-08-12 19:03:16 +0000
committerSriraman Tallam <tmsriram@google.com>2009-08-12 19:03:16 +0000
commit48c187ced8fcf0c09c26ab1782e63752bf206b4e (patch)
tree139f6a887edb3544c108164fee359016f5a5a48f /gold/icf.h
parent645afe0c5b028b013231f5890f66376e4dfc811d (diff)
downloadgdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.zip
gdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.tar.gz
gdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.tar.bz2
Sriraman Tallam <tmsriram@google.com>
* icf.cc (Icf::find_identical_sections): Unfold symbols that have been maked as --keep-unique. (Icf::unfold_section): New function. * icf.h (Icf::unfold_section): New function. * options.h (General_options::keep_unique): New option. * testsuite/Makefile.am: Add commands to build icf_keep_unique_test. * testsuite/Makefile.in: Regenerate. * testsuite/icf_keep_unique_test.sh: New file. * testsuite/icf_keep_unique_test.cc: New file.
Diffstat (limited to 'gold/icf.h')
-rw-r--r--gold/icf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/icf.h b/gold/icf.h
index 965964d..b87b992 100644
--- a/gold/icf.h
+++ b/gold/icf.h
@@ -87,6 +87,10 @@ class Icf
is_icf_ready()
{ return this->icf_ready_; }
+ // Unfolds the section denoted by OBJ and SHNDX if folded.
+ void
+ unfold_section(Object* obj, unsigned int shndx);
+
// Returns the kept section corresponding to the
// given section.
bool