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

Cary Coutant ccoutant@gmail.com
Fri Jun 5 03:56:00 GMT 2015


> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: discard-merge-locals.patch
Type: application/octet-stream
Size: 6016 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150605/bc83319b/attachment.obj>


More information about the Binutils mailing list