This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR5692


On Sat, Feb 16, 2008 at 05:19:41PM +0100, Ulrich Weigand wrote:
> This appears to fix the crash:
> 
> diff -c -p -r1.29 simple.c
> *** simple.c    10 Jul 2007 13:49:04 -0000      1.29
> --- simple.c    16 Feb 2008 16:17:50 -0000
> *************** bfd_simple_get_relocated_section_content
> *** 188,193 ****
> --- 188,194 ----
>     memset (&link_info, 0, sizeof (link_info));
>     link_info.input_bfds = abfd;
>     link_info.input_bfds_tail = &abfd->link_next;
> +   link_info.output_bfd = abfd;
> 
>     link_info.hash = _bfd_generic_link_hash_table_create (abfd);
>     link_info.callbacks = &callbacks;
> 
> However, I'm not sure this is really the right thing to do here ...

It is.  I have installed your fix.  Thanks!

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]