This is the mail archive of the binutils@sources.redhat.com 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: merging executables


"Jan Hoogerbrugge" <hoogerbrugge@hotmail.com> writes:

> I want to use libbfd to merge multiple ELF executables into one. Just
> copying the sections of a few input files to an output file. I wrote
> the following code, which does not work for some reason. It core dumps
> in bfd_copy_private_section_data. Any idea why??

I don't know if these are your only problems, but you didn't call
bfd_set_format() on the output file, and you didn't call
bfd_set_section_contents() for any section, so your output sections
are going to be empty.

Ian


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