This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [Bug] ld aborts linking large ieee file
- From: Nick Clifton <nickc at redhat dot com>
- To: "Smith, Gene" <Gene dot Smith at sea dot siemens dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 13 Mar 2003 15:33:05 +0000
- Subject: Re: [Bug] ld aborts linking large ieee file
- References: <3E6EB8FE.2060301@chartertn.net>
Hi Gene,
> Gene Smith wrote:
> > Also, if I try to do a objcopy of the large 3rd party ieee file
> (even > with no transformation) objcopy segfaults. However, the large
> 3rd >party ieee file lists nicely with objdump.
>
> gdb shows this caused by a call to ieee_write_expression() in
> bfd/ieee.c:2496 (binutils 2.13) with a NULL pointer in 3rd parameter
> (pointer to asymbol). The null pointer is shortly de-referenced inside
> the function causing segfault. Don't see a difference in latest
> cvs. Don't know all that is going on but perhaps should just return
> false instead of calling ieee_write_expression() when r->sym_ptr_ptr
> is null at li 2486?
Hmm, I think this one will need some more investigation. Do you have
a *small* file that reproduces this problem (rather than the large 3rd
party version) that you could send to me ? if not, then can you put
the large file somewhere where I can download it via FTP ? (Assuming
that you are allowed to make this file public).
Cheers
Nick
PS. Is this problem related to the other ieee linking problem that
you posted earlier ("ld 2.13 dumps core/seg faults") ?