Message ID | 20250116175214.83742-4-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | livepatch-build-tools: fixes for handling .cold and .hot sections | expand |
diff --git a/create-diff-object.c b/create-diff-object.c index b041d94d9723..dd5466bff6ce 100644 --- a/create-diff-object.c +++ b/create-diff-object.c @@ -821,8 +821,14 @@ static void kpatch_compare_sections(struct list_head *seclist) if (sec->base->sym && sec->base->sym->status != CHANGED) sec->base->sym->status = sec->status; } else { - if (sec->sym && sec->sym->status != CHANGED) - sec->sym->status = sec->status; + struct symbol *sym = sec->sym; + + if (sym && sym->status != CHANGED) + sym->status = sec->status; + + if (sym && sym->child && sym->status == SAME && + sym->child->sec->status == CHANGED) + sym->status = CHANGED; } } }