From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20665 invoked by alias); 27 Nov 2009 22:33:58 -0000 Received: (qmail 20614 invoked by uid 22791); 27 Nov 2009 22:33:57 -0000 X-SWARE-Spam-Status: No, hits=2.7 required=5.0 tests=AWL,BAYES_00,BOTNET X-Spam-Check-By: sourceware.org Received: from imap.ru.mvista.com (HELO buildserver.ru.mvista.com) (213.79.90.228) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Nov 2009 22:33:53 +0000 Received: from localhost (unknown [10.150.0.9]) by buildserver.ru.mvista.com (Postfix) with ESMTP id 4C3CC881A; Sat, 28 Nov 2009 02:33:51 +0400 (SAMT) Date: Fri, 27 Nov 2009 22:33:00 -0000 From: Anton Vorontsov To: systemtap@sourceware.org Cc: linuxppc-dev@ozlabs.org Subject: [PATCH 8/8] Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32 Message-ID: <20091127223351.GH21805@oksana.dev.rtsoft.ru> References: <20091127223251.GA17065@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20091127223251.GA17065@oksana.dev.rtsoft.ru> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00725.txt.bz2 Currently staprun fails at send_relocation_kernel(), this is because ppc32 doesn't have ".__start" symbol. I think we should use _stext, just as other arches. Signed-off-by: Anton Vorontsov --- runtime/staprun/staprun.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c index 078be4c..5bd5163 100644 --- a/runtime/staprun/staprun.c +++ b/runtime/staprun/staprun.c @@ -372,7 +372,7 @@ int send_relocation_kernel () free (line); line=NULL; if (symbol == NULL) continue; /* OOM? */ -#ifdef __powerpc__ +#ifdef __powerpc64__ #define KERNEL_RELOC_SYMBOL ".__start" #else #define KERNEL_RELOC_SYMBOL "_stext" -- 1.6.3.3