Avoid overflow.
2010-03-17 Jie Zhang <jie@codesourcery.com> * elf.c (assign_file_positions_for_load_sections): Avoid overflow.
This commit is contained in:
parent
d8c09fb595
commit
4b0f07110e
@ -1,3 +1,8 @@
|
|||||||
|
2010-03-17 Jie Zhang <jie@codesourcery.com>
|
||||||
|
|
||||||
|
* elf.c (assign_file_positions_for_load_sections): Avoid
|
||||||
|
overflow.
|
||||||
|
|
||||||
2010-03-17 Alan Modra <amodra@gmail.com>
|
2010-03-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
|
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
|
||||||
|
@ -4452,7 +4452,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
|
|||||||
{
|
{
|
||||||
bfd_signed_vma adjust = sec->vma - (p->p_vaddr + p->p_memsz);
|
bfd_signed_vma adjust = sec->vma - (p->p_vaddr + p->p_memsz);
|
||||||
|
|
||||||
if (adjust < 0)
|
if (sec->vma < p->p_vaddr + p->p_memsz)
|
||||||
{
|
{
|
||||||
(*_bfd_error_handler)
|
(*_bfd_error_handler)
|
||||||
(_("%B: section %A vma 0x%lx overlaps previous sections"),
|
(_("%B: section %A vma 0x%lx overlaps previous sections"),
|
||||||
|
Loading…
Reference in New Issue
Block a user