This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]