aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-01-11 12:23:53 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-01-11 12:23:53 +0000
commit59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a (patch)
tree24b862907e031ac594072b2dea3a720d1f0dfb38 /bfd
parente2204714e24debd8c495122615ea1582724db750 (diff)
downloadgdb-59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a.zip
gdb-59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a.tar.gz
gdb-59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0db2a5e..c3cc405 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf.c (assign_file_positions_for_load_sections): We can
+ require fewer phdrs than expected.
+
2007-01-08 Kazu Hirata <kazu@codesourcery.com>
* archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
diff --git a/bfd/elf.c b/bfd/elf.c
index c8fcbb5..faeb145 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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)
{