From d526805619de5473932d5859a44b16462bff7058 Mon Sep 17 00:00:00 2001
From: Joe Lawrence <joe.lawrence@redhat.com>
Date: Fri, 10 Mar 2017 10:26:06 -0500
Subject: [PATCH] kpatch-gcc: update ignorelist to avoid foo/.lib_exports.o
 files

Upstream kernel commit 7f2084fa55e6 ("[kbuild] handle exports in lib-y
objects reliably") (v4.9+) added temporary dummy .lib_exports.o objects
to the kernel build.  As these ephemeral files don't contain any code,
update the kpatch-gcc glob pattern to ignore them.

(glob pattern suggested by flaming-toast)

Fixes #686.
---
 kpatch-build/kpatch-gcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpatch-build/kpatch-gcc b/kpatch-build/kpatch-gcc
index f6db069..11217b8 100755
--- a/kpatch-build/kpatch-gcc
+++ b/kpatch-build/kpatch-gcc
@@ -32,7 +32,7 @@ if [[ "$TOOLCHAINCMD" = "gcc" ]] ; then
 				arch/x86/vdso/*|\
 				arch/x86/entry/vdso/*|\
 				drivers/firmware/efi/libstub/*|\
-				.*.o)
+				*.*.o)
 					break
 					;;
 				*.o)