Bug 1354034 - glibc addition of metag without relocations breaks rawhide kernel compliation
glibc addition of metag without relocations breaks rawhide kernel compliation
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-07-08 14:39 EDT by Laura Abbott
Modified: 2016-07-19 11:29 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 11:29:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Laura Abbott 2016-07-08 14:39:08 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:

#ifndef EM_METAG
/* 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.
Comment 1 Laura Abbott 2016-07-08 14:42:27 EDT
currently have a work around for rawhide. This bug is designed to track the 'real fix'
Comment 2 Laura Abbott 2016-07-19 11:29:53 EDT
ftrace maintainer took the proposed patch into his tree. Closing this as 'rawhide'.

Note You need to log in before you can comment on or make changes to this bug.