3ca25b560a
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.
5 lines
276 B
C
5 lines
276 B
C
int b1[] __attribute((section(".x1"))) = { 0x85, 0x86, 0x87, 0x88 };
|
|
int b2[] __attribute((section(".x2"))) = { 0x95, 0x96, 0x97, 0x98 };
|
|
int b3[] __attribute((section(".x3"))) = { 0xa5, 0xa6, 0xa7, 0xa8 };
|
|
int b4[] __attribute((section(".x4"))) = { 0xff, 0xff, 0xff, 0xff };
|