mirror of https://github.com/dynup/kpatch
add-patches-section: detect no patched functions
This commit is contained in:
parent
0688d1ed24
commit
add37f3f44
|
@ -289,6 +289,9 @@ int main(int argc, char **argv)
|
|||
elf_end(elfv.elf);
|
||||
close(elfv.fd);
|
||||
|
||||
if (!patches_nr)
|
||||
ERROR("no patched functions");
|
||||
|
||||
printf("patches_nr = %d\n", patches_nr);
|
||||
|
||||
/* allocate new section data buffers */
|
||||
|
|
Loading…
Reference in New Issue