This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold commit] PR 17498: Change default to discard temporary local symbols in merge sections
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 4 Jun 2015 20:53:56 -0700
- Subject: [gold commit] PR 17498: Change default to discard temporary local symbols in merge sections
- Authentication-results: sourceware.org; auth=none
This patch changes gold's default behavior to discard temporary local
symbols in merge sections, to match Gnu ld. It also adds a new
--discard-none option to keep all local symbols.
-cary
2015-06-04 Cary Coutant <cary@google.com>
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.