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]

Re: [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.

With the patch this time, and a corrected email address (I need to fix
the mklog script I stole from dnovillo)...

-cary


2015-06-04  Cary Coutant  <ccoutant@gmail.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.

Attachment: discard-merge-locals.patch
Description: Binary data


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