From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11463 invoked by alias); 20 Sep 2011 07:46:16 -0000 Received: (qmail 11455 invoked by uid 22791); 20 Sep 2011 07:46:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gw0-f48.google.com (HELO mail-gw0-f48.google.com) (74.125.83.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Sep 2011 07:45:59 +0000 Received: by gwj22 with SMTP id 22so178724gwj.21 for ; Tue, 20 Sep 2011 00:45:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.6.195 with SMTP id d3mr5742107pba.130.1316504757862; Tue, 20 Sep 2011 00:45:57 -0700 (PDT) Received: by 10.143.162.14 with HTTP; Tue, 20 Sep 2011 00:45:57 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Sep 2011 07:46:00 -0000 Message-ID: Subject: Re: Error in Gcov for ARM From: Jonathan Wakely To: Harry Trinta Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00161.txt.bz2 On 20 September 2011 06:13, Harry Trinta wrote: > Dear, > > I am having a problem when compiling a program with options > -ftest-coverage and -fprofile-arcs to run on an embedded system with > ARM processor. > I'm using a GCC cross-compiler (arm-elf) to compile the program. > > The errors is as follows: > > - undefined reference to `__gcov_merge_add' > - undefined reference to `__gcov_init' > > > is there any restriction on the use of these parameters for this type > of processor? Are you linking with -fprofile-arcs or -lgcov?