This is the mail archive of the
mailing list for the binutils project.
how to create a "empty" bfd structure
- From: Christian Groessler <chris at groessler dot org>
- To: binutils at sourceware dot org
- Date: Fri, 3 Aug 2007 00:54:35 +0200 (CEST)
- Subject: how to create a "empty" bfd structure
I'm trying to create a bfd structure with bfd_create.
Since I don't have an existing one, I pass NULL as templ.
This seemed to be possible, since bfd_create contains the
nbfd->xvec = templ->xvec;
But later bfd_set_format (called from bfd_create) crashes,
because xvec isn't set.
Is there a way to create a bfd structure which isn't connected
to a file or stream?
I want to modify gdb's standalone simulator to not use a
file to execute, but get the program from elsewhere. But the
sim_xxx functions want a bfd structure.