Adding a note section, can result in adding two elf segments. Account for that.
This commit is contained in:
parent
0b2c6355fb
commit
82d6e6c91c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue