public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: ali hagigat <hagigatali@gmail.com>
To: binutils@sourceware.org
Subject: questions about objcopy and -O option
Date: Sun, 06 Feb 2011 07:25:00 -0000	[thread overview]
Message-ID: <AANLkTineu-Ca4haBdcN0jKAPV6TS-1tRK+-xapLxmtDa@mail.gmail.com> (raw)

When i use: objcopy -O binary....The man pages of objcopy says:
"When objcopy generates a raw binary file, it will
essentially produce a memory dump of the contents of the input object file.  All
symbols and relocation information will be discarded.  The memory dump will
start at the load address of the lowest section copied into the output file."
By using objcopy i am creating an output file. So what is memory dump?
Does it create any thing in memory?
What is the content of this file? Only translated instructions, or it
contains some extra reserved bytes? Suppose i had a ld script and set
the start of my sections at 0xffffff00, after using objcopy it seems
that all this information is removed. Is that right?
Does compiler add any extra instructions to my code to remember those
addresses? I mean by looking at the output file of objcopy I can see
the address of 0xffffff00?

             reply	other threads:[~2011-02-06  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-06  7:25 ali hagigat [this message]
2011-02-07  0:17 ` Alan Modra

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=AANLkTineu-Ca4haBdcN0jKAPV6TS-1tRK+-xapLxmtDa@mail.gmail.com \
    --to=hagigatali@gmail.com \
    --cc=binutils@sourceware.org \
    /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).