how to create a "empty" bfd structure
Christian Groessler
chris@groessler.org
Thu Aug 2 22:54:00 GMT 2007
Hi,
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
lines
if (templ)
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.
regards,
chris
More information about the Binutils
mailing list