[ECOS] linker script problem

GONZALEZ Laurent laurent.gonzalez@trango-systems.com
Fri Apr 22 10:04:00 GMT 2005


On Fri, 22 Apr 2005 11:20:08 +0200
"Neundorf, Alexander" <Alexander.Neundorf@jenoptik.com> wrote:

> 
> SECTIONS
> {
>     SECTIONS_BEGIN
>     SECTION_fixed_vectors	(ram, 0x20, LMA_EQ_VMA)
>     SECTION_rom_vectors		(ram, 0x20000, LMA_EQ_VMA)
>     SECTION_text		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_fini		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_rodata		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_rodata1		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     .romfs ALIGN(0x20) :	{*(.romfs)} > ram
>     SECTION_fixup		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_gcc_except_table	(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_data		(ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_bss			(ram, ALIGN (0x4), LMA_EQ_VMA)
>     CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
>     .ram2 (NOLOAD)		:        {*(.ram2)} > ram2
>     SECTIONS_END
> }
> 
...
> 
> This is what the list file says:
> 
> -----%<---------------------------------------------------
> testapp:     file format elf32-littlearm
> testapp
> architecture: arm, flags 0x00000112:
> EXEC_P, HAS_SYMS, D_PAGED
> start address 0x00020040
> 
> ...
>  17 .ram2         020000fa  04000000  04000000  00040000  2**0
>                   CONTENTS, ALLOC, LOAD, DATA
> ...
> 040000fa g     O .ram2	02000000 RealBigBuffer
> ...
> 04000000 g     O .ram2	000000fa Buffer

I'am afraid that .ram2 section is loadable.

My guess is that your .ram2 section also contains an initialized variable (Buffer?), thus the whole section is tagged "CONTENTS, ALLOC, LOAD, DATA" like another .data section.

yours,

-- 
GONZALEZ Laurent
------------------------------------
Real-Time OS Team Leader
TRANGO Systems - Groupe ELSYS Design
74, avenue des Martyrs
38000 Grenoble
Tel: 33 (0)4 76 12 28 44
Fax: 33 (0)4 76 12 28 49
http://www.trango-systems.com

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list