From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753712AbcAMQYA (ORCPT ); Wed, 13 Jan 2016 11:24:00 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:37121 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbcAMQX7 (ORCPT ); Wed, 13 Jan 2016 11:23:59 -0500 Subject: Re: dynamic ftrace/recordmcount.c problem on ARMv5 To: Steven Rostedt References: <56961010.6000806@pengutronix.de> <20160113110856.4e7c5cdb@gandalf.local.home> Cc: linux-kernel@vger.kernel.org, ptx kernel From: Marc Kleine-Budde X-Enigmail-Draft-Status: N1110 Message-ID: <56967A18.1030900@pengutronix.de> Date: Wed, 13 Jan 2016 17:23:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160113110856.4e7c5cdb@gandalf.local.home> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5Rt5wmIc0VvsCdp2IEn1iFtmQfO8JsgE3" X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5Rt5wmIc0VvsCdp2IEn1iFtmQfO8JsgE3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/13/2016 05:08 PM, Steven Rostedt wrote: > On Wed, 13 Jan 2016 09:51:28 +0100 > Marc Kleine-Budde wrote: >=20 >> 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 =20 >> >> However there are 6 references in the __mcount_loc section: >>> $ readelf -R __mcount_loc arch/arm/kernel/stacktrace.o = =20 >>> >>> Hex dump of section '__mcount_loc': >>> 0x00000000 24000000 54000000 6c010000 34020000 $...T...l...4... >>> 0x00000010 6c020000 f4020000 l....... =20 >> >> Note: The first and wrong offset is 0x24, which is a "bx r6" (see abov= e >> objdump of stacktrace.o): >>> 24: e12fff16 bx r6 =20 >=20 > Interesting. Have you tried a make mrproper and tried again? Also, do > you use hardlinks with ccache? That happens on ARMv5 with a clean build. No ccache involved (this issue should be fixed on >=3D v4.4) >> I hacked scripts/Makefile.build to use the perl version of recordmcoun= t, >> that works without problems. >=20 > Note, you could also just removed CONFIG_HAVE_C_RECORDMCOUNT from > arch/arm/Kconfig. This is the patch I'm using as a workaround. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --5Rt5wmIc0VvsCdp2IEn1iFtmQfO8JsgE3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJWlnoYAAoJEP5prqPJtc/HppYIAJaqIjPCjq4z1EHM/JhrFrBQ ooie4NQmazq351cW05wNJxwT5lTKdBCqS85S00AXwc3Uee4jDZld4iIEE7Sj0u/S 8l6zz6Yo6F7sS6pqI0KZSys3XdyzSyDDbwcx3emNOJkhP5qbHKySuA4ktZTjKBjq ApaQkGQyKQSS9XnLX/xELkAQqDn3LRJBji0P9crb3ziBPQ6qsJriYmGnjH58k4KJ KWjl1hUVXuYQpU6m3WOeBghGstMqNSjbKvHMgmfB8PzRmhRy697oirDRW37mmBot PwyPd0NKsU9jT7k9CxqE++11IlEh01XB/4DTKLiwwV1rm/DX2WmpkUXGhl1/62Q= =Ug3l -----END PGP SIGNATURE----- --5Rt5wmIc0VvsCdp2IEn1iFtmQfO8JsgE3--