undefined reference to '__dso_handle' problem
Posted: Fri Jan 22, 2010 10:00 am
I have just decided to try and update my gnu arm toolchain so that I have a coretex M3 compatible compiler setup working before my new project starts. I have downloaded the yagarto toolchain which uses: binutils: 2.20, gcc: 4.4.2, newlib: .18.0, gdb:7.0.1. I have managed to get my existing code to compile OK, but I am getting a strange linker error. I believe it has something to do with static constructors, and the ".hidden issue"? A copy of my linker output follows:
obj/system_overview.o: In function `global constructors keyed to system_overview_status_group':
system_overview.cpp:(.text+0xbd8): undefined reference to `__dso_handle'
obj/main.o: In function `global constructors keyed to display':
main.cpp:(.text+0x80): undefined reference to `__dso_handle'
c:/Arm tools/yagarto/arm-elf/lib/interwork/libc.a(lib_a-isattyr.o): In function `_isatty_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\interwork\newlib\libc\reent/../../../../../../newlib-1.18.0/newlib/libc/reent/isattyr.c:58: undefined reference to `_isatty'
I am looking for some help in either
1) working around the problem
2) fixing the problem.
thanks for your help.
obj/system_overview.o: In function `global constructors keyed to system_overview_status_group':
system_overview.cpp:(.text+0xbd8): undefined reference to `__dso_handle'
obj/main.o: In function `global constructors keyed to display':
main.cpp:(.text+0x80): undefined reference to `__dso_handle'
c:/Arm tools/yagarto/arm-elf/lib/interwork/libc.a(lib_a-isattyr.o): In function `_isatty_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\interwork\newlib\libc\reent/../../../../../../newlib-1.18.0/newlib/libc/reent/isattyr.c:58: undefined reference to `_isatty'
I am looking for some help in either
1) working around the problem
2) fixing the problem.
thanks for your help.