This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: elf to binary conversion problem
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Max Salov <amx at me dot by>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 28 May 2009 09:07:19 +0200
- Subject: Re: [ECOS] elf to binary conversion problem
- References: <4A1E36AD.8000408@me.by>
On Thu, May 28, 2009 at 10:01:01AM +0300, Max Salov wrote:
> Hi,
> I've made a port of eCos-3.0 to stm3210b eval board by stripping some
> elements off the stm3210e port. It builds successfully. With minimal set
> of packages (libc_stdio, libc_stdlib, libc_string, libc_i18n) "hello
> world" example's size is
> $ arm-eabi-size hello.elf
> text data bss dec hex filename
> 5172 88 1936 7196 1c1c hello
> but if I try to convert elf to binary with
> $ arm-eabi-objcopy -Obinary hello.elf hello.bin
> resulting binary image occupy 402654296 bytes (384 MBytes!).
What does:
arm-eabi-objdump --headers hello.elf
show?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss