diff options
author | Sriraman Tallam <tmsriram@google.com> | 2009-08-12 19:03:16 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2009-08-12 19:03:16 +0000 |
commit | 48c187ced8fcf0c09c26ab1782e63752bf206b4e (patch) | |
tree | 139f6a887edb3544c108164fee359016f5a5a48f /gold/icf.h | |
parent | 645afe0c5b028b013231f5890f66376e4dfc811d (diff) | |
download | gdb-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |