mirror of
https://github.com/dynup/kpatch
synced 2025-01-20 03:50:42 +00:00
don't correlate __verbose statics
The __verbose section stores several static local structs named "descriptor". These structs contain information related to dynamic debugging printks and are specific to the patched object, so they shouldn't be correlated with their base object counterparts. Fixes the following error: kpatch_correlate_static_local_variables: 830: static local variable descriptor.49967 not used
This commit is contained in:
parent
6ed046f1c2
commit
f1775ec73d
@ -802,6 +802,14 @@ void kpatch_correlate_static_local_variables(struct kpatch_elf *base,
|
||||
sym->twin)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* The static variables in the __verbose section contain
|
||||
* debugging information specific to the patched object and
|
||||
* shouldn't be correlated.
|
||||
*/
|
||||
if (!strcmp(sym->sec->name, "__verbose"))
|
||||
continue;
|
||||
|
||||
dot = strchr(sym->name, '.');
|
||||
if (!dot)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user