https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59009
--- Comment #51 from clyon at gcc dot gnu.org --- Created attachment 34678 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34678&action=edit tentative patch Here is a patch proposal: with it I an able to cross-build GCC for aarch64-linux and arm-linux against either 3.7 or 3.17 kernel headers (that is, before and after the changes for AArch64). I'd like to make sure it works in the LLVM/compiler-rt environment too.