2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>

Chris Demetriou  <cgd@google.com>

        * elfread.c (elf_symfile_segments): Fix the check that each loadable
        section fits within an ELF segment to handle ELF segments that hit
        the end of the address space.
This commit is contained in:
Chris Demetriou
2008-07-21 05:05:23 +00:00
parent 1cad8cd386
commit a366c65aeb
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
Chris Demetriou <cgd@google.com>
* elfread.c (elf_symfile_segments): Fix the check that each loadable
section fits within an ELF segment to handle ELF segments that hit
the end of the address space.
2008-07-20 Chris Demetriou <cgd@google.com>
* MAINTAINERS (Write After Approval): Add self.

View File

@ -108,7 +108,7 @@ elf_symfile_segments (bfd *abfd)
for (j = 0; j < num_segments; j++)
if (segments[j]->p_memsz > 0
&& vma >= segments[j]->p_vaddr
&& vma < segments[j]->p_vaddr + segments[j]->p_memsz)
&& (vma - segments[j]->p_vaddr) < segments[j]->p_memsz)
{
data->segment_info[i] = j + 1;
break;