public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* placing data into a section
@ 2006-07-10 18:06 Bahadir Balban
  2006-07-10 18:09 ` Daniel Jacobowitz
  2006-07-11 13:57 ` Nick Clifton
  0 siblings, 2 replies; 5+ messages in thread
From: Bahadir Balban @ 2006-07-10 18:06 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-11 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10 18:06 placing data into a section Bahadir Balban
2006-07-10 18:09 ` Daniel Jacobowitz
2006-07-11 13:57 ` Nick Clifton
2006-07-11 14:11   ` vamsi krishna
2006-07-11 16:19     ` Daniel S. Wilkerson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).