* ldlang.c (insert_pad): Make use of an existing pad statement if
commitc13aacb7e227398fab25ad377bcc6dcd51a8ba2e
authorAlan Modra <amodra@bigpond.net.au>
Sat, 18 Aug 2001 14:54:26 +0000 (18 14:54 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sat, 18 Aug 2001 14:54:26 +0000 (18 14:54 +0000)
tree100d61b5e3d05b018a77ac8cccc294b331036354
parent39ec8f7e6c4118e89f1b50cb4d8da9c1120e9107
* ldlang.c (insert_pad): Make use of an existing pad statement if
available.  Move code calculating alignment, adjusting section
alignment power, and adjusting dot to ..
(size_input_section): .. here.  Remove unused relax param.
(lang_size_sections): Change boolean `relax' param to boolean *.
Adjust call to size_input_section.  Make use of insert_pad to
place pad after the assignment statement.  If relaxing, zap
padding statements.
(reset_memory_regions): Reset output_bfd section sizes too.
(relax_again): Move to..
(lang_process): ..here.  Adjust call to lang_size_sections, and
remove duplicated code.
* ldlang.h (lang_size_sections): Change `relax' param to boolean *.
ld/ChangeLog
ld/ldlang.c
ld/ldlang.h