This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Binary file generation revisited
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: harri dot siirtola at vtt dot fi
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 04 Jan 2002 01:54:25 +0000
- Subject: Re: [ECOS] Binary file generation revisited
- References: <4.3.2.7.2.20020102215257.00b41500@vttmail.vtt.fi>
harri.siirtola@vtt.fi wrote:
>
> Hi,
> I asked this a while ago. The problem is, generating a binary image to be
> FLASHed results to a huge output file. arm-elf-size gives 53708 bytes and,
> as I wrote before:
>
> >> and if I execute "arm-elf-objcopy -O binary myfile.out myfile.bin",
> >> myfile.bin is >15 megabytes!!!
>
> >Upgrade your binutils.
> >Jifl
>
> I upgraded to snapshot 011227 with no luck. Result is 15 770 156 bytes...
> is there something special about makefiles when building a ROM image (other
> than suppressing debug info)?
It looks like I may have been mistaking your problem with a known bug in
some versions of binutils.
What does "arm-elf-objdump -h" on the *ELF* version of the file (i.e.
myfile.out) say? In particular, look at the LMA - that should indicate some
section with an address about 16Mb away from the rest.
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