mirror of
https://github.com/dynup/kpatch
synced 2025-02-27 23:40:32 +00:00
Merge pull request #236 from jpoimboe/new-functions
create-diff-object: support adding new functions
This commit is contained in:
commit
322dac3507
@ -1499,7 +1499,7 @@ void kpatch_create_patches_sections(struct kpatch_elf *kelf,
|
|||||||
/* count patched functions */
|
/* count patched functions */
|
||||||
nr = 0;
|
nr = 0;
|
||||||
list_for_each_entry(sym, &kelf->symbols, list)
|
list_for_each_entry(sym, &kelf->symbols, list)
|
||||||
if (sym->type == STT_FUNC && sym->sec)
|
if (sym->type == STT_FUNC && sym->status == CHANGED)
|
||||||
nr++;
|
nr++;
|
||||||
|
|
||||||
/* create .kpatch.patches */
|
/* create .kpatch.patches */
|
||||||
@ -1556,7 +1556,7 @@ void kpatch_create_patches_sections(struct kpatch_elf *kelf,
|
|||||||
/* populate sections */
|
/* populate sections */
|
||||||
index = 0;
|
index = 0;
|
||||||
list_for_each_entry(sym, &kelf->symbols, list) {
|
list_for_each_entry(sym, &kelf->symbols, list) {
|
||||||
if (sym->type == STT_FUNC && sym->sec) {
|
if (sym->type == STT_FUNC && sym->status == CHANGED) {
|
||||||
if (sym->bind == STB_LOCAL) {
|
if (sym->bind == STB_LOCAL) {
|
||||||
if (lookup_local_symbol(table, sym->name,
|
if (lookup_local_symbol(table, sym->name,
|
||||||
hint, &result))
|
hint, &result))
|
||||||
|
Loading…
Reference in New Issue
Block a user