[arm-gnu] Errors while linking with lgcov for Symbian OS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Errors while linking with lgcov for Symbian OS



Hello,
 
I'm getting the following errors while trying to build DLL for Symbian
OS compiled with GCCE "-fprofile-arcs -ftest-coverage" options:
 
undefined reference to `__gcov_init'
undefined reference to `__gcov_merge_add'
 
I've added
 
EXTRA_LD_OPTION=-fprofile-arcs -ftest-coverage -lgcov
 
in  GCCE.mk, & the linker command options are as below:
 
arm-none-symbianelf-ld -L "c:/program files/codesourcery/sourcery g++
lite/bin/../lib/gcc/arm-none-symbianelf/4.3.2/" -L "c:/program
files/codesourcery/sourcery g++
lite/bin/../lib/gcc/arm-none-symbianelf/4.3.2/../../../../arm-none-symbi
anelf/lib"   --target1-rel  --no-undefined -nostdlib -fprofile-arcs
-ftest-coverage -lgcov -shared -Ttext 0x8000   -Tdata 0x400000
--default-symver -soname My{000a0000}.dll   --entry _E32Dll  -u _E32Dll
\bin\Techview\epoc32\release\ARMV5\udeb\EDLL.LIB
\bin\Techview\epoc32\release\ARMV5\udeb\EDLL.LIB \
 -o
"\bin\Techview\EPOC32\BUILD\PR346_Symbian_5\src\base\os\symbian\group\BA
SE\GCCEV6\udeb\My.dll" \
 -Map  "\bin\Techview\epoc32\release\gccev6\udeb\My.dll.map" \
 
@\bin\Techview\EPOC32\BUILD\PR346_Symbian_5\src\base\os\symbian\group\BA
SE\GCCEV6\My.GCCEV6.UDEB.objects.via \
 \bin\Techview\epoc32\release\ARMV5\udeb\EDLLSTUB.lib -(
\bin\Techview\epoc32\release\ARMV5\udeb\usrt3_1.lib -)
\bin\Techview\epoc32\release\armv5\LIB\euser.dso
\bin\Techview\epoc32\release\armv5\LIB\hal.dso
\bin\Techview\epoc32\release\armv5\LIB\estlib.dso
\bin\Techview\epoc32\release\armv5\LIB\libc.dso
\bin\Techview\epoc32\release\armv5\LIB\libpthread.dso
\bin\Techview\epoc32\release\armv5\LIB\efsrv.dso
\bin\Techview\epoc32\release\armv5\LIB\scppnwdl.dso
\bin\Techview\epoc32\release\armv5\LIB\drtaeabi.dso
\bin\Techview\epoc32\release\armv5\LIB\dfpaeabi.dso
\bin\Techview\epoc32\release\armv5\LIB\drtrvct3_1.dso
\bin\Techview\epoc32\release\armv5\LIB\dfprvct3_1.dso -lsupc++ -lgcc \
   
Any ideas what might be wrong here?
 
Thanks
Alexei.
 

-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.