* elf.c (assign_file_positions_for_load_sections): We can
	require fewer phdrs than expected.
ld/
	* emultempl/elf-generic.em (gdl_map_segments): Only allow header
	shrinkage for the first few iterations.
ld/testsuite/
	* ld-elf/header.d: New.
	* ld-elf/header.t: New.
	* ld-elf/header.s: New.
This commit is contained in:
Nathan Sidwell
2007-01-11 12:23:53 +00:00
parent e2204714e2
commit 59e0647f0d
8 changed files with 56 additions and 2 deletions

View File

@@ -4275,7 +4275,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
elf_tdata (abfd)->program_header_size = alloc * bed->s->sizeof_phdr;
else
BFD_ASSERT (elf_tdata (abfd)->program_header_size
== alloc * bed->s->sizeof_phdr);
>= alloc * bed->s->sizeof_phdr);
if (alloc == 0)
{