diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-03-17 13:46:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-03-17 13:46:35 +0000 |
commit | 4b0f07110e55b09f44ef95a36e4d7ca4612de33c (patch) | |
tree | c35fe6b6cab658081aafda29dfd254499a7b8b53 /bfd/elf.c | |
parent | d8c09fb595c4ad7ea517ec2bed1458bd18782b37 (diff) | |
download | binutils-4b0f07110e55b09f44ef95a36e4d7ca4612de33c.zip binutils-4b0f07110e55b09f44ef95a36e4d7ca4612de33c.tar.gz binutils-4b0f07110e55b09f44ef95a36e4d7ca4612de33c.tar.bz2 |
Avoid overflow.
2010-03-17 Jie Zhang <jie@codesourcery.com>
* elf.c (assign_file_positions_for_load_sections): Avoid
overflow.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4452,7 +4452,7 @@ assign_file_positions_for_load_sections (bfd *abfd, { 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) (_("%B: section %A vma 0x%lx overlaps previous sections"), |