public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "vamsi krishna" <vamsi.krishnak@gmail.com>
To: "Nick Clifton" <nickc@redhat.com>
Cc: "Bahadir Balban" <bahadir.balban@gmail.com>, binutils@sources.redhat.com
Subject: Re: placing data into a section
Date: Tue, 11 Jul 2006 14:11:00 -0000	[thread overview]
Message-ID: <3faf05680607110711j20abb3f3h42a3816a6322542c@mail.gmail.com> (raw)
In-Reply-To: <44B3AE5D.4030304@redhat.com>

Hello

> > 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?

I suggest you need to add this as a SEGMENT not a SECTION, because in
a executable the section header table can be stripped off. You may
need some mechanism to add the bulk file as a PHDR PT_LOAD entry.

Just more curious on how would you refer this in your code?

Thank you,
Vamsi kundeti

  reply	other threads:[~2006-07-11 14:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10 18:06 Bahadir Balban
2006-07-10 18:09 ` Daniel Jacobowitz
2006-07-11 13:57 ` Nick Clifton
2006-07-11 14:11   ` vamsi krishna [this message]
2006-07-11 16:19     ` Daniel S. Wilkerson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3faf05680607110711j20abb3f3h42a3816a6322542c@mail.gmail.com \
    --to=vamsi.krishnak@gmail.com \
    --cc=bahadir.balban@gmail.com \
    --cc=binutils@sources.redhat.com \
    --cc=nickc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).