arm-elf-objcopy create a 200MB binary from a 200K elf image!!

Jonathan Larmour jlarmour@redhat.com
Fri Mar 16 00:30:00 GMT 2001


> Cliff Tsai wrote:
> 
> Hi:
> 
>     I'm trying to converter a elf image to binary format
>     $arm-elf-objcopy -I elf-littlearm -O binary testarm.elf testarm.bin
> 
>     But testarm.bin is almost 200M,but my testarm.elf only has 200K.
>     Why?

Probably because code or data sections are being loaded at addresses 200Mb
apart. Run "arm-elf-objdump -h testarm.elf" and look at the load addresses
of each section. For what you intend, they should all be close together.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Binutils mailing list