From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbcAMQJB (ORCPT ); Wed, 13 Jan 2016 11:09:01 -0500 Received: from smtprelay0145.hostedemail.com ([216.40.44.145]:35865 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752807AbcAMQJA (ORCPT ); Wed, 13 Jan 2016 11:09:00 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::,RULES_HIT:41:355:379:541:599:800:960:968:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3873:3874:4321:4605:5007:6261:7875:9121:10004:10400:10848:10967:11026:11232:11658:11914:12049:12438:12517:12519:12555:12740:13069:13180:13229:13311:13357:14096:14097:14581:14659:21080:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: head15_31440aa213525 X-Filterd-Recvd-Size: 2070 Date: Wed, 13 Jan 2016 11:08:56 -0500 From: Steven Rostedt To: Marc Kleine-Budde Cc: linux-kernel@vger.kernel.org, ptx kernel Subject: Re: dynamic ftrace/recordmcount.c problem on ARMv5 Message-ID: <20160113110856.4e7c5cdb@gandalf.local.home> In-Reply-To: <56961010.6000806@pengutronix.de> References: <56961010.6000806@pengutronix.de> X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.29; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Jan 2016 09:51:28 +0100 Marc Kleine-Budde wrote: > There are 5 calls to __gnu_mcount_nc in the object file: > > $ objdump -x arch/arm/kernel/stacktrace.o | grep R_ARM_CALL | grep __gnu_mcount_nc > > 00000054 R_ARM_CALL __gnu_mcount_nc > > 0000016c R_ARM_CALL __gnu_mcount_nc > > 00000234 R_ARM_CALL __gnu_mcount_nc > > 0000026c R_ARM_CALL __gnu_mcount_nc > > 000002f4 R_ARM_CALL __gnu_mcount_nc > > However there are 6 references in the __mcount_loc section: > > $ readelf -R __mcount_loc arch/arm/kernel/stacktrace.o > > > > Hex dump of section '__mcount_loc': > > 0x00000000 24000000 54000000 6c010000 34020000 $...T...l...4... > > 0x00000010 6c020000 f4020000 l....... > > Note: The first and wrong offset is 0x24, which is a "bx r6" (see above > objdump of stacktrace.o): > > 24: e12fff16 bx r6 Interesting. Have you tried a make mrproper and tried again? Also, do you use hardlinks with ccache? > > I hacked scripts/Makefile.build to use the perl version of recordmcount, > that works without problems. Note, you could also just removed CONFIG_HAVE_C_RECORDMCOUNT from arch/arm/Kconfig. -- Steve