This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: creating binaries by objcopy
- From: Daniel Jacobowitz <drow at false dot org>
- To: Bahadir Balban <bahadir dot balban at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 5 Jun 2005 15:44:01 -0400
- Subject: Re: creating binaries by objcopy
- References: <7ac1e90c05060512412856a04b@mail.gmail.com>
On Sun, Jun 05, 2005 at 08:41:30PM +0100, Bahadir Balban wrote:
> Hi,
>
> The binutils manual 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."
>
> So if I have an ELF file that is defined to be scatter-loaded into
> various addresses in memory, and also includes a bss section,
>
> a) If I convert this to a binary via objcopy, does this mean I lose
> all the loader-related services to do the scatter-loading, and
> allocation of the bss?
>
> b) Do I need to define routines that copy the scattered sections, zero
> out the bss etc if I want to have such services of a loader? Is there
> a better way to do this? Do RTOSes define their own methods to do
> these?
The answers to these questions depend on your target and on your
linker. It's hard to say.
--
Daniel Jacobowitz
CodeSourcery, LLC