From 48c187ced8fcf0c09c26ab1782e63752bf206b4e Mon Sep 17 00:00:00 2001 From: Sriraman Tallam Date: Wed, 12 Aug 2009 19:03:16 +0000 Subject: Sriraman Tallam * 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. --- gold/icf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gold/icf.h') 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 -- cgit v1.1