This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] PR 17498: Change default to discard temporary local symbols in merge sections


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]