Change default to discard temporary local symbols in merge sections.
authorCary Coutant <ccoutant@gmail.com>
Fri, 5 Jun 2015 03:58:08 +0000 (20:58 -0700)
committerCary Coutant <ccoutant@gmail.com>
Fri, 5 Jun 2015 03:58:08 +0000 (20:58 -0700)
commitcd3c333f43f03d6e41668a82a68a99c14000a681
tree111fa29f0aff6318e7df16f84d90003775adc8f0
parentdc302c00611b6973fbc55e9fdd643ad24c370bd1
Change default to discard temporary local symbols in merge sections.

Add --discard-none to keep all local symbols.

gold/
PR gold/17498
* object.cc (Sized_relobj_file::do_count_local_symbols): Discard
temporary locals in merge sections.
* options.cc (General_options::parse_discard_all): New method.
(General_options::parse_discard_locals): New method.
(General_options::parse_discard_none): New method.
(General_options::General_options): Initialize discard_locals_.
* options.h (--discard-all): Convert to special option.
(--discard-locals): Likewise.
(--discard-none): New option.
(General_options::discard_all): New method.
(General_options::discard_locals): New method.
(General_options::discard_sec_merge): New method.
(General_options::Discard_locals): New enum.
(General_options::discard_locals_): New data member.
gold/ChangeLog
gold/object.cc
gold/options.cc
gold/options.h