This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: elf to binary conversion problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]