Pad sections according to current script FILL.
authorAlan Modra <amodra@gmail.com>
Fri, 4 Apr 2014 01:15:03 +0000 (11:45 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Apr 2014 08:36:35 +0000 (19:06 +1030)
commitffe54b3798db9112505e7f6b9d5e0d0b13823a29
treed4bddfdbeb3aba9d668268998086de08da71dfc9
parent4554c4528a3548320c020f9baf97485302624300
Pad sections according to current script FILL.

When aligning input sections, we are supposed to take the fill pattern
from a FILL statement, if there is one in the output section statement.

ld/
* ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
current "fill", not "output_section_statement->fill".
ld/testsuite/
* ld-scripts/fill.d, * ld-scripts/fill.t, * ld-scripts/fill_0.s,
* ld-scripts/fill_1.s, * ld-scripts/fill_2.s: New test.
* ld-scripts/data.exp: Run it.
ld/ChangeLog
ld/ldlang.c
ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/data.exp
ld/testsuite/ld-scripts/fill.d [new file with mode: 0644]
ld/testsuite/ld-scripts/fill.t [new file with mode: 0644]
ld/testsuite/ld-scripts/fill_0.s [new file with mode: 0644]
ld/testsuite/ld-scripts/fill_1.s [new file with mode: 0644]
ld/testsuite/ld-scripts/fill_2.s [new file with mode: 0644]