This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling redboot for Neponset


> 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



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