This is the mail archive of the ecos-devel@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]

eCos compiled with gcc-3.4


I want to compile the eCos for MCF5272EVB which is supported by eCos. But I got the
follow error message:



/opt/ecos/build/mcf5272_install/include/pkgconf/mlt_m68k_mcf52xx_mcf5272_mcf5272 3_ram.ldi:53:1: pasting "." and "romvec" does not give a valid preprocessing token


The file mlt_m68k_mcf52xx_mcf5272_mcf5272 3_ram.ldi is :

MEMORY
{
   rom (rx)        : ORIGIN = 0x00020000, LENGTH = 0x001E0000
   ram (wx)        : ORIGIN = 0x00200000, LENGTH = 0x00200000
}

SECTIONS
{
   SECTIONS_BEGIN

GENERIC_SECTION (rom, rom, 0x00020000 (NOLOAD), LMA_EQ_VMA, 0x001E0000)
GENERIC_SECTION (ram, ram, 0x00200000 (NOLOAD), LMA_EQ_VMA, 0x00200000)


GENERIC_SECTION (romvec, rom, __rom_start, LMA_EQ_VMA, 0x400)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




   SECTION_text                (rom, ALIGN (0x4), FOLLOWING (.romvec))
   SECTION_fini                (rom, ALIGN (0x4), FOLLOWING (.text))
   SECTION_rodata1             (rom, ALIGN (0x4), FOLLOWING (.fini))
   SECTION_rodata              (rom, ALIGN (0x4), FOLLOWING (.rodata1))
   SECTION_fixup               (rom, ALIGN (0x4), FOLLOWING (.rodata))

// WARNING: If you change the order of these sections, be sure to change
// the location of the data section.


   SECTION_gcc_except_table    (rom, ALIGN (0x4), FOLLOWING (.fixup))
   __rom_data_addr = ABSOLUTE(.);

GENERIC_SECTION (ramvec, ram, __ram_start (NOLOAD), LMA_EQ_VMA, 0x400)
SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table), __rom_data_addr)
SECTION_sbss (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)
SECTION_bss (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)
SECTION_uninvar (ram, ALIGN (0x4) (NOLOAD), LMA_EQ_VMA)


// Allocate a heap section.

   SECTION_heap1               (ram, ALIGN (0x4), LMA_EQ_VMA, 0x20000)
   // The build tool looks for this "CYG_LABEL_DEFN..." string.
   CYG_LABEL_DEFN(__heap1) = ABSOLUTE (__heap1_start);

   SECTIONS_END
}

I have marked the line 53. This file is included in the link command file, but I can't find
GENERIC_SECTION command in the syntax reference of ld script language. What does it mean?


Sorry, I am a newbie for eCos. Could anybody help me?
thx.


Chao Xiang




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