This is the mail archive of the binutils@sourceware.org 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: Initializing a bfd* without using openr_bfd (nor _bfd_new_bfd()) ?


Hi,

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
private function).

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 !

Regards
--
Emmanuel Fleury

The intrepid Spaceman Spiff is stranded on a distant planet!
Our hero ruefully acknowledges that this happens fairly frequently...
  -- Calvin & Hobbes (Bill Waterson)


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