Support arbitrary length fill patterns.

* linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
	(_bfd_default_link_order): Remove bfd_fill_link_order code.
	Call default_data_link_order.
	(default_fill_link_order): Delete.
	(default_data_link_order): New function.
	* elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
	of bfd_fill_link_order with bfd_data_link_order.
	* elf64-alpha.c (elf64_alpha_final_link): Likewise.
	* elf64-mips.c (mips_elf64_final_link): Likewise.
This commit is contained in:
Alan Modra
2002-02-15 02:10:35 +00:00
parent 9a1b9f826d
commit fd96f80fc8
5 changed files with 57 additions and 42 deletions

View File

@ -6518,7 +6518,7 @@ mips_elf64_final_link (abfd, info)
if (p->type != bfd_indirect_link_order)
{
if (p->type == bfd_fill_link_order)
if (p->type == bfd_data_link_order)
continue;
abort ();
}
@ -6655,7 +6655,7 @@ mips_elf64_final_link (abfd, info)
if (p->type != bfd_indirect_link_order)
{
if (p->type == bfd_fill_link_order)
if (p->type == bfd_data_link_order)
continue;
abort ();
}
@ -6734,7 +6734,7 @@ mips_elf64_final_link (abfd, info)
if (p->type != bfd_indirect_link_order)
{
if (p->type == bfd_fill_link_order)
if (p->type == bfd_data_link_order)
continue;
abort ();
}