This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm-elf-objcopy create a 200MB binary from a 200K elf image!!
You're right!
I use the following setup in linker script
. = 0x0;
.text : { *(.text)}
. = 0xc7f0000;
.data : { *(.data)}
.bss SIZEOF(.data) + ADDR(.data) :
{
__bss_start = ALIGN(0x8);
*(.bss)
*(COMMON)
end = ALIGN(0x8);
_end = ALIGN(0x8);
__end = ALIGN(0x8);
........
Can't I use linker script above?
(0x0 is Rom address. and c7f0000 is Ram address.)
Thanks!
----- Original Message -----
From: "Jonathan Larmour" <jlarmour@redhat.com>
To: "Cliff Tsai" <clifftsai@minecard.com.tw>
Cc: <binutils@sources.redhat.com>
Sent: Friday, March 16, 2001 4:30 PM
Subject: 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
>