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]

placing data into a section


Hi,

When I am linking an elf executable, I would like to place some bulk
data (e.g. a zip file or some other binary file) into a section in the
final executable. How can I achieve this with ld commands and the
linker script?

It will be something like:

SECTIONS {
   /* Other sections ... */

.data :
   {
   /* Some other data go here ... */

   bulk_data_start = .;
   *(.bulk_data)
   bulk_data_end = .;
   }
}

But how can I put a file into a .bulk_data section like that?

Thanks,
Bahadir


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