Issue with linking C++ application for ARMulator BSP (overlaps section)

Karel Gardas kgardas at objectsecurity.com
Mon Jan 10 13:04:31 UTC 2005


Hello,

it seems I'm not able to build single hello world C++ test application. As
I've read in this list, I've added make-cxx-exe into the
make/custom/armulator.cfg, since this was missing, but still I'm getting
this:

thinkpad:/mnt/karel/downloads/RTEMS/build/tools/examples-4.6.2/hello_world_cxx$
make
arm-rtems-g++ -B/mnt/karel/rtems-arm//arm-rtems/armulator/lib/ -specs
bsp_specs -qrtems   -g -Wall  -g     -msoft-float          -o
o-optimize/hello.exe -Xlinker -Map -Xlinker mapfile   o-optimize/test.o
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-dpmem.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-event.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-msg.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-mp.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-part.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-signal.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-timer.rel
/mnt/karel/rtems-arm//arm-rtems/armulator/lib/no-rtmon.rel
/mnt/karel/rtems-arm/bin/../lib/gcc-lib/arm-rtems/3.2.3/../../../../arm-rtems/bin/ld:
section
.gnu.linkonce.r._ZTSSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE
[00001858 -> 00001893] overlaps section
.gnu.linkonce.r._ZTSNSt8ios_base7failureE [0000188c -> 000018a3]
/mnt/karel/rtems-arm/bin/../lib/gcc-lib/arm-rtems/3.2.3/../../../../arm-rtems/bin/ld:
section
.gnu.linkonce.r._ZTSSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE
[00001894 -> 000018cf] overlaps section
.gnu.linkonce.r._ZTSNSt8ios_base7failureE [0000188c -> 000018a3]
collect2: ld returned 1 exit status
make: *** [o-optimize/hello.exe] Error 1


I've seen very similar report to the list with reply suggesting to
increase RAM size in linkcmds. I've done so up to 160M, but it hasn't
helped me yet. (maybe I've done it in a wrong way).

Is there anybody here who has C++ support for rtems/armulator
up'n'running?

Thanks,
Karel
--
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com






More information about the users mailing list