add-patches-section: detect no patched functions

This commit is contained in:
Josh Poimboeuf 2014-03-19 17:46:53 -05:00
parent 0688d1ed24
commit add37f3f44
1 changed files with 3 additions and 0 deletions

View File

@ -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 */