This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "Relocation info was lost"
- To: Xinan Tang <xinant at cognigine dot com>
- Subject: Re: "Relocation info was lost"
- From: amodra at one dot net dot au
- Date: Wed, 23 May 2001 12:02:58 +0930
- Cc: binutils at sources dot redhat dot com
- References: <3B0AC979.3010504@cognigine.com>
On Tue, May 22, 2001 at 01:18:01PM -0700, Xinan Tang wrote:
> Hi
>
> I had a difficulty to generate relocatable information in assembler.
>
> When dumping relocation info., I traced down to the last call site,
>
> write.c:1927 bfd_map_over_sections(stdoutput, write_contents, (char *0))
>
> in file write.c. This is the last call to bfd_map_over_sections()
> in function write_object_file(). Every relocation record was correctly
> stored in the section. However, after the .o file was generated,
> the relocation records printed by the `objdump -r' are different
> from what I saw in the assembler.
>
> What did go wrong?
You haven't given us enough information to provide any help other than
wild guesses. You might like to look a little deeper and see what is
happenning in your bfd_close and _bfd_write_contents functions.
--
Alan Modra