This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

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


> 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


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