Red Hat Bugzilla – Bug 1354034
glibc addition of metag without relocations breaks rawhide kernel compliation
Last modified: 2016-07-19 11:29:53 EDT
https://sourceware.org/git/?p=glibc.git;a=commit;h=94e73c95d9b5ac7d3b3f178e2ca03ef6b60e82aa made it's way to Fedora via http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/commit/?id=9a78be1808600ca5e66eab741542447a29cfbeb3
Compiling the rawhide kernel with this new glibc produces build errors:
gcc -o /builddir/build/BUILD/kernel-4.6.fc25/linux-4.7.0-0.rc6.git2.1.fc25.x86_64/tools/objtool/fixdep /builddir/build/BUILD/kernel-4.6.fc25/linux-4.7.0-0.rc6.git2.1.fc25.x86_64/tools/objtool/fixdep-in.o
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;
recordmcount.c has this:
/* Remove this when these make it to the standard system elf.h. */
#define EM_METAG 174
#define R_METAG_ADDR32 2
#define R_METAG_NONE 3
The afformentioned glibc commit added the #define EM_METAG but failed to add the relocation information.
currently have a work around for rawhide. This bug is designed to track the 'real fix'
ftrace maintainer took the proposed patch into his tree. Closing this as 'rawhide'.