Hi

The cut and paste is from an sh-rtems C++ application link failure.
But the failure is happening on some h8300, m68k, powerpc, and
sh BSPs. Each BSP has its own linker script so if there is a mistake
in that due to age, then we could be missing some newer magic.
This is all with gcc 4.8.2 and binutils 2.24?

What are we missing that would have introduced this?

sh-rtems4.11-g++ -B../../../../../gensh1/lib/ -specs bsp_specs -qrtems
-m1 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs    -m1   -o cdtest.exe init.o main.o
main.o: In function `_static_initialization_and_destruction_0':
/users/joel/rtems-4.11-work/rtems-testing/rtems/build-sh-gensh1-rtems/sh-rtems4.11/c/gensh1/testsuites/samples/cdtest/../../../../../../../rtems/c/src/../../testsuites/samples/cdtest/main.cc:141:
undefined reference to `__dso_handle'
/users/joel/rtems-4.11-work/tools/lib/gcc/sh-rtems4.11/4.8.2/libstdc++.a(eh_globals.o):
In function `_static_initialization_and_destruction_0':
/users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/sh-rtems4.11-gcc-4.8.2-newlib-cvs-head-1/build/sh-rtems4.11/libstdc++-v3/libsupc++/../../../../gcc-4.8.2/libstdc++-v3/libsupc++/eh_globals.cc:109:
undefined reference to `__dso_handle'
/users/joel/rtems-4.11-work/tools/lib/gcc/sh-rtems4.11/4.8.2/../../../../sh-rtems4.11/bin/ld:
cdtest.exe: hidden symbol `___dso_handle' isn't defined
/users/joel/rtems-4.11-work/tools/lib/gcc/sh-rtems4.11/4.8.2/../../../../sh-rtems4.11/bin/ld:
final link failed: Bad value

Thanks.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

Reply via email to