Fix bug with grouping sections.
authorCary Coutant <ccoutant@gmail.com>
Thu, 23 Jun 2016 16:45:25 +0000 (09:45 -0700)
committerCary Coutant <ccoutant@gmail.com>
Thu, 23 Jun 2016 16:45:25 +0000 (09:45 -0700)
commit3ca25b560af813ca576821b500a0f0885829b500
tree6c6b394becd0a8da3259ccb807460f420fce7220
parent2ec060b71cc1cddb506d3a38475aadc184e25985
Fix bug with grouping sections.

The fix for PR 15370 did not correctly check all patterns in a group,
but instead threw all unassigned sections into the group. This patch
fixes that.

2016-06-23  Cary Coutant  <ccoutant@gmail.com>
    Igor Kudrin  <ikudrin@accesssoftek.com>

gold/
PR gold/15370
* script-sections.cc
(Output_section_element_input::set_section_addresses): Keep bin_count
separate from input_pattern_count.
* testsuite/script_test_12.t: Add another section .x4.
* testsuite/script_test_12i.t: Likewise.
* testsuite/script_test_12a.c: Likewise.
* testsuite/script_test_12b.c: Likewise.
gold/ChangeLog
gold/script-sections.cc
gold/testsuite/script_test_12.t
gold/testsuite/script_test_12a.c
gold/testsuite/script_test_12b.c
gold/testsuite/script_test_12i.t
This page took 0.025436 seconds and 4 git commands to generate.