This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Compiling redboot for Neponset
- From: Jesper Skov <jskov at redhat dot com>
- To: srijon <srijon at innvo dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: 27 Nov 2001 09:27:49 +0100
- Subject: Re: [ECOS] Compiling redboot for Neponset
- References: <3C033F89.F73B682A@innvo.com>
> It gives the following error towards the end:
> /opt/arm/arm-linux/bin/ld: warning: no memory region specified for
> section `.got'
The linker script is missing some entries to work with that compiler,
apparently.
> Also, previously, I was using gcc-2.95.2 for ARM to compile (as I
> understand it, redboot does not compile with that compiler), I used to
> face a curious situation:
> the redboot.bin file would show to be around 1.2Gb big, if I did "ls
> -la" in the install/bin directory. But "du" in the same directory showed
> the actual size to be aroud a 100Kb. Any ideas as to why?
> Opening the file, I saw that it was filled with zeroes upto offset
> 0x500000 or something, and after that was the actual code ( I think that
> was the code.) - any explanation?
Use 2.95.2 (or whatever is suggested on the installation instruction
pages). The big file is due to a bug in binutils. I belive you can use
--change-address -FIRST_ADDRESS_WITH_DATA to work around it.
(The file is only 100KiB on the disk because the filesystem supports
files with holes - blocks of zeroes are not saved on the disk).
Jesper