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:
Josh Poimboeuf 2014-08-04 09:51:17 -05:00
parent 6ed046f1c2
commit f1775ec73d

View File

@ -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;