Patch to add --keep-unique option to gold for unfolding user-specified symbols.
Sriraman Tallam
tmsriram@google.com
Wed Aug 12 18:54:00 GMT 2009
Hi,
I am committing this patch to gold to support --keep-unique
option during ICF which
does not fold user specified symbols. Ian and Cary approved this patch off-line.
Thanks,
-Sriraman.
2009-08-12 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 (Genereal_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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keep_unique_patch
Type: application/octet-stream
Size: 10692 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090812/4bfe502b/attachment.obj>
More information about the Binutils
mailing list