Adding a note section, can result in adding two elf segments. Account for that.

This commit is contained in:
christos 2004-05-23 18:08:16 +00:00
parent 0b2c6355fb
commit 82d6e6c91c
1 changed files with 5 additions and 1 deletions

View File

@ -4105,7 +4105,11 @@ get_program_header_size (abfd)
&& strncmp (s->name, ".note", 5) == 0)
{
/* We need a PT_NOTE segment. */
++segs;
/*
* XXX: we allocate 2 here, because we can get 2 elf_segment_map's
* from it.
*/
segs += 2;
}
}