This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problem with bfd_fdopenr and BFD_SEND_FMT combo?
- From: Muthukumar Ratty <muthu at iqmail dot net>
- To: <binutils at sources dot redhat dot com>
- Cc: <amodra at bigpond dot net dot au>
- Date: Thu, 3 Jul 2003 00:23:26 -0700 (PDT)
- Subject: Problem with bfd_fdopenr and BFD_SEND_FMT combo?
Hi,
I was trying to use bfd_fdopenr on an fd opened with RDWR. it goes ok till
it reaches bfd_close:BFD_SEND_FMT where it fails( error message printed
is Invalid operation, if I use bfd_openw things are fine but I want to
use fdopenr). I tried to enable the DEBUG_SEND_BFD (adding it to CFLAGS
in Makefile), compilation fails for archive.c. I verified that fdopenr
does work correctly (finds that the file is opened for RDWR and sets the
direction properly). Any idea what might be the problem?
thanks,
Muthu.