mirror of
https://github.com/dynup/kpatch
synced 2024-12-12 00:14:35 +00:00
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:
parent
8927b57509
commit
019c029830
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user