From 019c02983009ce418ee525b7665634c068c60e49 Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Wed, 30 May 2018 19:20:18 +0200 Subject: [PATCH] Add .cold. to mangled functions check gcc8 introduces ".cold." optimization symbols that have arbitrary trainling numbers in their names just like ".isra." and others. Add ".cold." to a condition in kpatch_rename_mangled_functions() Signed-off-by: Artem Savkov --- kpatch-build/create-diff-object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 829cd27..e703be1 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -825,6 +825,7 @@ static void kpatch_rename_mangled_functions(struct kpatch_elf *base, if (!strstr(sym->name, ".isra.") && !strstr(sym->name, ".constprop.") && + !strstr(sym->name, ".cold.") && !strstr(sym->name, ".part.")) continue;