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: Can I use the dynamic memory allocation on the class object? Thanks a lot.


Thank you.
from the command I can see:
/c/altera/excalibur/sopc_builder/bin/arm-gnupro/arm9-020528/bin/../lib/gcc-l
ib/arm-elf/2.96-arm9-020528/../../../../arm-elf/bin/ld:
is this not the right one? (This is the toolchain shipped with the Altera
Excalibur board for ARM9)

BTW what is the eh_frame section used for? After saving the ecos
configuration I looked into the *.ldi file and found that eh_frame section
is not created by the macro define in arm.ld: #define
SECTION_eh_frame(_region_, _vma_, _lma_) .
here is the *.ldi file:

MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0x2000000
}

SECTIONS
{
    SECTIONS_BEGIN
    SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
    SECTION_rom_vectors (ram, 0x40000, 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)
    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);
    SECTIONS_END
}


Or is the eh_frame is a pre-defined section according to the compiler or
already included as subsection in any above section?
Thanks a lot.



-----Original Message-----
From: Andrew Lunn [mailto:andrew.lunn@ascom.ch]
Sent: 30 April 2003 11:50
To: QiangHuang
Cc: Ecos-Discuss
Subject: Re: [ECOS] Can I use the dynamic memory allocation on the class
object? Thanks a lot.


On Wed, Apr 30, 2003 at 11:43:11AM +0100, QiangHuang wrote:
> Thanks a lot. I just download the ecos repository via CVS,  I got the
> cxxsupp.cxx file in the ecos repository. I am based on the Altera
excalibur
> platform. Any specify setting need to be done for the platform? when I try
> to link my program with ecos library I still have the same problem.
> while I try to build the test program I got the following error:
[..]

>
arm-elf-gcc --no-target-default-spec -Wl,-static -g -O2 -nostdlib -Wl,--fata
>
l-warnings -L/ecos-e/epxa1_new_net/epxa1_new_net_install/lib -Ttarget.ld -o
>
/ecos-e/epxa1_new_net/epxa1_new_net_install/tests/infra/current/tests/cxxsup
> p tests/cxxsupp.o
>
/ecos-c/altera/EXCALI~1/SOPC_B~1/bin/ARM-GN~1/ARM9-0~1/bin/../lib/gcc-lib/ar
> m-elf/2.96-arm9-020528/../../../../arm-elf/bin/ld: unrecognized option
> `--fatal-warnings'
> collect2: ld returned 1 exit status
> make[1]: ***
>
[/ecos-e/epxa1_new_net/epxa1_new_net_install/tests/infra/current/tests/cxxsu
> pp] Error 1
> make[1]: Leaving directory
> `/ecos-e/epxa1_new_net/epxa1_new_net_build/infra/current'
> make: *** [tests] Error 2
>
> when linking with user application:
>
>  warning: no memory region specified for section `.eh_frame'
> ./arm-elf/bin/ld: section .eh_frame [0009967c -> 00099f03] overlaps
section
> .rodata [00094df0 -> 00116077]

What toolchain are you using?

/ecos-c/altera/EXCALI~1/SOPC_B~1/bin/ARM-GN~1/ARM9-0~1/bin/../lib/gcc-lib/ar
 m-elf/2.96-arm9-020528/../../../../arm-elf/bin/ld: unrecognized option

This suggests its not the recommended one. Get the upto date
toolchain. Look at http://sources.redhat.com/ecos/getstart.html.

           Andrew


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


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