mirror of https://github.com/dynup/kpatch
iterate the iterator
It works better this way. Trust me. Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
2b39b34f5f
commit
084cbeaa80
|
@ -297,6 +297,7 @@ int main(int argc, char **argv)
|
|||
patches_data[i].orig_end = cur->vm_addr + cur->vm_len;
|
||||
relas_data[i].r_offset = i * sizeof(struct kpatch_patch);
|
||||
relas_data[i].r_info = GELF_R_INFO(cur->index, R_X86_64_64);
|
||||
i++;
|
||||
}
|
||||
|
||||
/* get next section index from elf header */
|
||||
|
|
Loading…
Reference in New Issue