EmbDev.net

Forum: ARM programming with GCC/GNU tools __dso_handle problem at link time.


von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Hi all,

I try to use a cpp class to use fixed point math library. So far i was
able to get everything work.

Now When I call a membre function of the class, i got an

undefined reference to `__dso_handle'

i'm not an expert at the configuration of cpp under the arm7.

here the complete link command

Linking: main2.elf
arm-elf-gcc -mthumb -mcpu=arm7tdmi -mthumb-interwork -I. -gdwarf-2
-DROM_RUN -DVECTORS_IN_RAM -D__WinARM__ -D__WINARMSUBMDL_AT91SAM7S256__
-D__WINARMBOARD_ATMEL_AT91SAM7S_EK__  -O2 -Wall -Wcast-align -Wimplicit
-Wpointer-arith -Wswitch -ffunction-sections -fdata-sections
-Wredundant-decls -Wreturn-type -Wshadow -Wunused
-Wa,-adhlns=common/Cstartup.lst  -I./common -I./FixedPoint -MD -MP -MF
dep/main2.elf.d common/Cstartup.o common/swi_handler.o interrupt.o
dbgu.o syscalls.o common/Cstartup_SAM7.o flash.o
./FixedPoint/fixed.o main2.o --output main2.elf -nostartfiles
-Wl,-Map=main2.map,--cref,--gc-sections -lstdc++ -lc  -lm -lc -lgcc
-L./common  -T./common/AT91SAM7S256-ROM.ld
./FixedPoint/fixed.o: In function `fixed::sin()':
C:\Projet\Etudiant\at91sam7s_example_gamma\test_flash/FixedPoint/fixed.c 
pp:1277:
undefined reference to `__dso_handle'
collect2: ld returned 1 exit status
arm_make: *** [main2.elf] Error 1

thanx for your help.

Jonathan

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.