This is the mail archive of the
mailing list for the binutils project.
Re: Initializing a bfd* without using openr_bfd (nor _bfd_new_bfd()) ?
- From: Emmanuel Fleury <fleury at labri dot fr>
- To: nick clifton <nickc at redhat dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 20 Jan 2012 09:05:47 +0100
- Subject: Re: Initializing a bfd* without using openr_bfd (nor _bfd_new_bfd()) ?
- References: <4F144058.email@example.com> <4F1847A8.firstname.lastname@example.org>
On 01/19/2012 05:41 PM, nick clifton wrote:
I am struggling with libbfd trying to allocate a fresh bfd* structure,
yet without using openr_bfd, openw_bfd (nor _bfd_new_bfd as it is a
Is there a simple way to call _bfd_new_bfd() without having to
reimplement it ?
Have you tried using bfd_create() ?
Not yet, but this is exactly what I need indeed... Sorry, I didn't find
it in the documentation at first sight.
My point was exactly to not depend of a file, so not opening the file is
quite enough for me.
Or bfd_openr_iovec() ?
I didn't find the documentation for this function, but I'll look in the
code of binutils.
Thans a lot for these hints !
The intrepid Spaceman Spiff is stranded on a distant planet!
Our hero ruefully acknowledges that this happens fairly frequently...
-- Calvin & Hobbes (Bill Waterson)