* [PATCH 1/4] ftrace/recordmcount: Work around for addition of metag magic but not relocations [not found] <20160803135416.011514852@goodmis.org> @ 2016-08-03 13:54 ` Steven Rostedt 2016-08-04 8:39 ` James Hogan 0 siblings, 1 reply; 2+ messages in thread From: Steven Rostedt @ 2016-08-03 13:54 UTC (permalink / raw) To: linux-kernel Cc: Linus Torvalds, Ingo Molnar, Andrew Morton, stable, James Hogan, Ross Burton, Laura Abbott [-- Attachment #1: 0001-ftrace-recordmcount-Work-around-for-addition-of-meta.patch --] [-- Type: text/plain, Size: 1952 bytes --] 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 -- 2.8.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/4] ftrace/recordmcount: Work around for addition of metag magic but not relocations 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 0 siblings, 0 replies; 2+ messages in thread From: James Hogan @ 2016-08-04 8:39 UTC (permalink / raw) To: Steven Rostedt Cc: linux-kernel, Linus Torvalds, Ingo Molnar, Andrew Morton, stable, Ross Burton, Laura Abbott [-- 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 --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-04 8:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20160803135416.011514852@goodmis.org>
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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).