This is the mail archive of the
mailing list for the binutils project.
Re: Special MIPS relocation - How to?
On Tue, Jul 09, 2002 at 09:59:07PM +0200, Francisco Rodriguez wrote:
> After all the sections have been relocated,
> I use a call to bfd_get_section_contents to get .text section contents,
> but the function call returns error. After tracing, the problem seems
> to be the file IO: a real fseek and fread are needed because SEC_CONTENTS
> flag is not set.
> The fseek returns ok, but the fread returns 0 bytes read.
> How can this happen? The bfd_get_section_contents call is made
> before the output bfd is closed, so it should be ok, shouldn't it?
fflush (output_bfd->iostream) perhaps?
IBM OzLabs - Linux Technology Centre