aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-04-04 11:45:03 +1030
committerAlan Modra <amodra@gmail.com>2014-04-04 19:06:35 +1030
commitffe54b3798db9112505e7f6b9d5e0d0b13823a29 (patch)
treed4bddfdbeb3aba9d668268998086de08da71dfc9 /ld/ldlang.c
parent4554c4528a3548320c020f9baf97485302624300 (diff)
downloadgdb-ffe54b3798db9112505e7f6b9d5e0d0b13823a29.zip
gdb-ffe54b3798db9112505e7f6b9d5e0d0b13823a29.tar.gz
gdb-ffe54b3798db9112505e7f6b9d5e0d0b13823a29.tar.bz2
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 37ef265..d147ee0 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -5213,7 +5213,7 @@ lang_size_sections_1
*relax = TRUE;
}
dot = size_input_section (prev, output_section_statement,
- output_section_statement->fill, dot);
+ fill, dot);
}
break;