[ECOS] Porting to Atmel AT91 - stub image is *very* big
Robin Farine
advanc@dial.eunet.ch
Thu Nov 9 12:03:00 GMT 2000
Andreas,
> SECTIONS
> {
> SECTIONS_BEGIN
> SECTION_rom_vectors (rom, 0x01400000, LMA_EQ_VMA)
> SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
> SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
> SECTION_bss (dram, 0x00400000, LMA_EQ_VMA)
> SECTION_data (dram, ALIGN (0x4), LMA_EQ_VMA)
> SECTIONS_END
> }
You have a big hole between the bss LMA and the rom_vectors LMA. You could
try something like:
SECTIONS
{
SECTIONS_BEGIN
SECTION_rom_vectors (rom, 0x01400000, LMA_EQ_VMA)
SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_data (dram, 0x00400000, FOLLOWING(.text))
SECTION_bss (dram, ALIGN (0x4), LMA_EQ_VMA)
SECTIONS_END
}
Note that the bss section should always end the data segment since it
sometimes expand at runtime (maybe not in eCos but that's what the
brk() system call does in a UNIX-like OS).
Hope this works,
Robin
More information about the Ecos-discuss
mailing list