Special MIPS relocation - How to?
Alan Modra
amodra@bigpond.net.au
Tue Jul 9 17:55:00 GMT 2002
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?
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list