Hi Christian,

      Thanks for the reply.

      With your reply iam able to proceed till some extent , but right now iam getting some linker error when I am building the image.

 

Below iam pasting the gcc version info which iam using.

 

Reading specs from /cross2/arm/toolchain/gcc-3.3.5-1/lib/gcc-lib/arm-linux-uclibc/3.3.5/specs

Configured with: /root/buildroot/toolchain_build_arm/gcc-3.3.5/configure --prefix=/cross2/arm/toolchain/gcc-3.3.5-1 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --enable-multilib --enable-sjlj-exceptions

Thread model: posix

gcc version 3.3.5

 

 

 

Here is the error iam getting .

 

OBJCOPY arch/arm/boot/Image

  Kernel: arch/arm/boot/Image is ready

  GZIP    arch/arm/boot/compressed/piggy.gz

  AS      arch/arm/boot/compressed/piggy.o

  LD      arch/arm/boot/compressed/vmlinux

arch/arm/boot/compressed/misc.o(.text+0x5f00): In function `$a':

: undefined reference to `__bb_init_func'   ( This function exists in the gcov coverage patch )

make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1

make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2

make: *** [zImage] Error 2

 

Can you guide me further what I need to do to resolve this error.

 

Thanks,

 

Regards

Siva

 

 

    

 

-----Original Message-----
From: ltp-coverage-admin@lists.sourceforge.net [mailto:ltp-coverage-admin@lists.sourceforge.net] On Behalf Of Christian Gagneraud
Sent: Thursday, April 14, 2005 2:34 PM
To: Sivasankar K
Cc: ltp-coverage@lists.sourceforge.net
Subject: Re: [Ltp-coverage] GCOV-Kernel support ARM architecture.

 

Sivasankar K wrote:

> Hi All,

>

>             Can you guys please let me know the current Gcov-kernel

> patch ( 2.6.8) will support for the ARM architecture or not.

>

>>From the patch contents I have found out that it supports only for the

> i386, Sparc and Power Pc. If I want to use for ARM what I need to do.

 

Just add

-----

source "drivers/gcov/Kconfig"

-----

in arch/arm/Kconfig, and

-----

#ifdef CONFIG_GCOV_PROFILE

/*

  * The .ctors-section contains a list of pointers to constructor

  * functions which are used to initialize gcov structures.

  *

  * Because there is no NULL at the end of the constructor list

  * in the kernel we need the addresses of both the constructor

  * as well as the destructor list which are supposed to be

  * adjacent.

  */

 

.section ".ctors","aw"

.globl  __CTOR_LIST__

.type   __CTOR_LIST__, %object

__CTOR_LIST__:

.section ".dtors","aw"

.globl  __DTOR_LIST__

.type   __DTOR_LIST__, %object

__DTOR_LIST__:

#endif

-----

At the end of arch/arm/kernel/head.S

 

It works fine for us.

 

Regards,

Christian

 

>

>

> When I have applied the patch to linux-2.6.8 I will get gcov-coverage

> option for i386 , but Iam not getting the same for the ARM .

>

>

>

> Regards

>

> Siva

>

>

>   

>

>

 

 

 

-------------------------------------------------------

SF email is sponsored by - The IT Product Guide

Read honest & candid reviews on hundreds of IT Products from real users.

Discover which products truly live up to the hype. Start reading now.

http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

_______________________________________________

Ltp-coverage mailing list

Ltp-coverage@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/ltp-coverage