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.
This commit is contained in:
Sriraman Tallam 2009-08-12 19:03:16 +00:00
parent 645afe0c5b
commit 48c187ced8
8 changed files with 152 additions and 1 deletions

View file

@ -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