This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Code coverage using synthetic eCos.
- From: "Santoshkumar Zalake" <santoshkumar dot zalake at wipro dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 1 Mar 2005 17:16:26 +0530
- Subject: [ECOS] Code coverage using synthetic eCos.
Hi all,
I want to do code coverage of C code using synthetic eCos-2.0 on Linux. I
used gcov.
I enable the flag of gcov "-fprofile-arcs -ftest-coverage" at time of
complication.
But at the time of linking I got following error.
gcc -nostdlib -Tos/ecos/lib/target.ld -Los/ecos//lib/ -L/usr/lib -o a.out
.test.o .test_1.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a(_bb.oS)(.text+0x439): In
function `__bb_exit_func':
: undefined reference to `getpid'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a(_bb.oS)(.text+0x44c): In
function `__bb_exit_func':
: undefined reference to `fileno'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a(_bb.oS)(.text+0x454): In
function `__bb_exit_func':
: undefined reference to `fcntl'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a(_bb.oS)(.text+0x460): In
function `__bb_exit_func':
: undefined reference to `__errno_location'
collect2: ld returned 1 exit status
make: *** [test/systest/ap.out] Error 1
Please let me any one come across theses errors and if possible related
solution.
Thanks in Advance,
Z.Santosh..
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss