mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: linux-kernel@vger.kernel.org, ptx kernel <kernel@pengutronix.de>
Subject: Re: dynamic ftrace/recordmcount.c problem on ARMv5
Date: Wed, 13 Jan 2016 11:08:56 -0500	[thread overview]
Message-ID: <20160113110856.4e7c5cdb@gandalf.local.home> (raw)
In-Reply-To: <56961010.6000806@pengutronix.de>

On Wed, 13 Jan 2016 09:51:28 +0100
Marc Kleine-Budde <mkl@pengutronix.de> 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

  reply	other threads:[~2016-01-13 16:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13  8:51 Marc Kleine-Budde
2016-01-13 16:08 ` Steven Rostedt [this message]
2016-01-13 16:23   ` Marc Kleine-Budde
2016-01-13 16:27     ` Steven Rostedt
2016-01-13 16:30       ` Marc Kleine-Budde
2016-02-08 15:38 ` Marc Kleine-Budde
2016-02-08 15:53   ` Steven Rostedt
2016-03-11  9:21 ` Uwe Kleine-König
2016-03-20  3:48   ` Namhyung Kim
2016-03-20 20:00     ` Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160113110856.4e7c5cdb@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®