forked from Imagelibrary/binutils-gdb
bfd/
* 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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user