[ECOS] [eCos] Linker data section confusion (mine)

rbarraud@ihug.co.nz rbarraud@ihug.co.nz
Thu Nov 1 20:16:00 GMT 2001


Hi All,
	I'm trying to build an SA11x0 redboot/eCos port. So far so good,
using the Linux configtool version 2.03 and basing our source changes on Intel
Assabet platform.

I have an image redboot.bin which is humongous - 1.3GB approx - which is the
span of the addresses used in the program (rom base at 0x50000000). Is this
normal? - or should the .bin build option strip it down to rom sections etc.?

I have stripped the first 1280MB out and managed to execute the code from boot
ROM (FLASH (JTAGing it in))... but the part in vectors.S where the 'data'
section is copied from rom to ram fails - probably faults actually - as
__ram_data_end is less (at 0x14) than __ram_data_start (0x8000).

I've looked at the .ldi linker script fragments and the architecture .ld file
(which defines things like SECTION_data)...  but I'm a little bewildered still.

Should __ram_data_end be defined with an ABSOLUTE(.) rather than a '.' ?

The BSS section seems similarly afflicted.

What have I broken?

Any pearls of wisdom would be appreciated :)

Cheers
Roger Barraud




More information about the Ecos-discuss mailing list