This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf_backend_emit_relocs problems (bug?)
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Fabio Alemagna <falemagn at studenti dot unina dot it>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 21 Jan 2003 13:21:16 +1030
- Subject: Re: elf_backend_emit_relocs problems (bug?)
- References: <Pine.OSF.4.30.0301210033270.369955-100000@studenti.unina.it>
On Tue, Jan 21, 2003 at 12:41:38AM +0100, Fabio Alemagna wrote:
> #0 elf_link_input_bfd (finfo=0xbffff360, input_bfd=0x80d1bd0)
> at ../../binutils/bfd/elflink.h:6899
> 6899 *rel_hash = NULL;
You'll need to investigate why the elf_section_data for your output
section isn't being set up correctly.
> the 'print' command in gdb says that doesn't know anything about rel_hash
> (don't ask me why), so I put a printf() right before that line and it
> showed that rel_hash is a NULL pointer.
Don't use -O2 when compiling.
--
Alan Modra
IBM OzLabs - Linux Technology Centre