[PATCH, COMMITTED]: Fix seg fault in elf32.em:_after_open

H.J. Lu hjl.tools@gmail.com
Fri Aug 20 15:54:00 GMT 2010


On Fri, Aug 20, 2010 at 8:00 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Guys,
>
>  Whilst working on another bug I came across a seg-fault in the
>  _after_open() function in elf32.em.  If the target is not an ELF
>  binary then get_elf_backend_data will return NULL, but the code was
>  not checking for this.  Fixed by applying the following patch.
>
> Cheers
>  Nick
>
> ld/ChangeLog
> 2010-08-20  Nick Clifton  <nickc@redhat.com>
>
>        * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
>        returning NULL.
>

Do you have a testcase? The problem may be more than that.


-- 
H.J.



More information about the Binutils mailing list