From: James Hogan <james.hogan@imgtec.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
<stable@vger.kernel.org>, Ross Burton <ross.burton@intel.com>,
Laura Abbott <labbott@redhat.com>
Subject: Re: [PATCH 1/4] ftrace/recordmcount: Work around for addition of metag magic but not relocations
Date: Thu, 4 Aug 2016 09:39:20 +0100 [thread overview]
Message-ID: <20160804083919.GD19514@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <20160803135453.373628713@goodmis.org>
[-- Attachment #1: Type: text/plain, Size: 2246 bytes --]
On Wed, Aug 03, 2016 at 09:54:17AM -0400, Steven Rostedt wrote:
> From: Laura Abbott <labbott@redhat.com>
>
> glibc recently did a sync up (94e73c95d9b5 "elf.h: Sync with the gabi
> webpage") that added a #define for EM_METAG but did not add relocations
>
> This triggers build errors:
>
> scripts/recordmcount.c: In function 'do_file':
> scripts/recordmcount.c:466:28: error: 'R_METAG_ADDR32' undeclared (first use in this function)
> case EM_METAG: reltype = R_METAG_ADDR32;
> ^~~~~~~~~~~~~~
> scripts/recordmcount.c:466:28: note: each undeclared identifier is reported only once for each function it appears in
> scripts/recordmcount.c:468:20: error: 'R_METAG_NONE' undeclared (first use in this function)
> rel_type_nop = R_METAG_NONE;
> ^~~~~~~~~~~~
>
> Work around this change with some more #ifdefery for the relocations.
>
> Fedora Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1354034
>
> Link: http://lkml.kernel.org/r/1468005530-14757-1-git-send-email-labbott@redhat.com
>
> Cc: stable@vger.kernel.org # v3.9+
> Cc: James Hogan <james.hogan@imgtec.com>
> Fixes: 00512bdd4573 ("metag: ftrace support")
> Reported-by: Ross Burton <ross.burton@intel.com>
> Signed-off-by: Laura Abbott <labbott@redhat.com>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ---
> scripts/recordmcount.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
> index e167592793a7..42396a74405d 100644
> --- a/scripts/recordmcount.c
> +++ b/scripts/recordmcount.c
> @@ -33,10 +33,17 @@
> #include <string.h>
> #include <unistd.h>
>
> +/*
> + * glibc synced up and added the metag number but didn't add the relocations.
> + * Work around this in a crude manner for now.
> + */
> #ifndef EM_METAG
> -/* Remove this when these make it to the standard system elf.h. */
> #define EM_METAG 174
> +#endif
> +#ifndef R_METAG_ADDR32
> #define R_METAG_ADDR32 2
> +#endif
> +#ifndef R_METAG_NONE
> #define R_METAG_NONE 3
> #endif
FWIW:
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-08-04 8:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 13:54 [PATCH 0/4] [GIT PULL] tracing: Some fixes for 4.8 (and earlier) Steven Rostedt
2016-08-03 13:54 ` [PATCH 1/4] ftrace/recordmcount: Work around for addition of metag magic but not relocations Steven Rostedt
2016-08-04 8:39 ` James Hogan [this message]
2016-08-03 13:54 ` [PATCH 2/4] Makefile: Mute warning for __builtin_return_address(>0) for tracing only Steven Rostedt
2016-08-03 13:54 ` [PATCH 3/4] tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all Steven Rostedt
2016-08-03 14:19 ` Dmitry Vyukov
2016-08-03 15:45 ` Steven Rostedt
2016-08-03 13:54 ` [PATCH 4/4] tracing: Fix use-after-free in hist_register_trigger() Steven Rostedt
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=20160804083919.GD19514@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=akpm@linux-foundation.org \
--cc=labbott@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=ross.burton@intel.com \
--cc=rostedt@goodmis.org \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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
Powered by JetHome