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 20983: Fix problem where linker does not place .note sections according to script


The fix for PR 14676 broke perf, as noted in PR 20983. I've committed
this patch to fix that problem.

-cary


2016-12-19  Cary Coutant  <ccoutant@gmail.com>

gold/
        PR gold/14676
        PR gold/20983
        * layout.h (Layout::choose_output_section): Add match_input_spec
        parameter. Adjust all callers.
        * layout.cc (Layout::choose_output_section): Likewise.  Pass
        match_input_spec to Script_sections::output_section_name().
        (Layout::create_note): Pass true for match_input_spec.
        * script-sections.h (Script_sections::output_section_name): Add
        match_input_spec parameter.
        * script-sections.cc (Sections_element::output_section_name): Likewise.
        (Output_section_definition::output_section_name): Likewise.
        (Script_sections::output_section_name): Likewise.

Attachment: pr20983.patch
Description: Binary data


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