[ECOS] Can I use the dynamic memory allocation on the class object? Thanks a lot.

QiangHuang jameshq@liverpool.ac.uk
Wed Apr 30 10:50:00 GMT 2003


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 -c  -I/ecos-e/epxa1_new_net/epxa1_new_net_install/include -I/eco
s-c/ecoscvs/ecos/packages/infra/current -I/ecos-c/ecoscvs/ecos/packages/infr
a/current/src -I/ecos-c/ecoscvs/ecos/packages/infra/current/tests -I. -I/eco
s-c/ecoscvs/ecos/packages/infra/current/tests/ -mcpu=arm9 -Wall -Wpointer-ar
ith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunct
ion-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-pr
iority -Wp,-MD,tests/cxxsupp.tmp -o tests/cxxsupp.o
/ecos-c/ecoscvs/ecos/packages/infra/current/tests/cxxsupp.cxx
/ecos-c/ecoscvs/ecos/packages/infra/current/tests/cxxsupp.cxx: In function
`void cyg_start ()':
/ecos-c/ecoscvs/ecos/packages/infra/current/tests/cxxsupp.cxx:71: warning:
can't inline call to `void Pure::inline_fun1 ()'
/ecos-c/ecoscvs/ecos/packages/infra/current/tests/cxxsupp.cxx:134: warning:
called from here
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]

BTW does this means the en_frame section is missing from being defined?
shoud I define it? maybe I am wrong.

Thanks a lot.

> Thank you very much for your help.
> Maybe I was not doing in the right way. The problem is I can use new to
> create a class object when building the eCOS library. but when linking
with
> my application I got the following error:
>
> warning: no memory  region specified for section `.eh_frame'
> section .eh_frame [00092508 -> 00092d8f] overlaps section .text
[00040040 ->
> 00093287].
>

Which platform are you using? and what version of eCos? I recently
checked in a lot of fixes for exactly this problem. Either you are
using an older version of eCos, or there was a bug in the change for
your platform. Does the infra package cxxsupp.cxx test program build
in your configuration?



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



More information about the Ecos-discuss mailing list