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 <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2018-05-30 19:20:18 +02:00
parent 8927b57509
commit 019c029830
1 changed files with 1 additions and 0 deletions

View File

@ -825,6 +825,7 @@ static void kpatch_rename_mangled_functions(struct kpatch_elf *base,
if (!strstr(sym->name, ".isra.") && if (!strstr(sym->name, ".isra.") &&
!strstr(sym->name, ".constprop.") && !strstr(sym->name, ".constprop.") &&
!strstr(sym->name, ".cold.") &&
!strstr(sym->name, ".part.")) !strstr(sym->name, ".part."))
continue; continue;