kpatch-build: change FILE symbol not found to warning

Change the "FILE symbol not found in base. Stripped?" (fatal) error
message into a warning.  These crop up whenever a change is made to an
assembly file.

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
Joe Lawrence 2018-06-11 11:20:37 -04:00
parent a8133b1dc3
commit 391c9875ee

View File

@ -3082,8 +3082,10 @@ int main(int argc, char *argv[])
break;
}
}
if (!hint)
ERROR("FILE symbol not found in base. Stripped?\n");
if (!hint) {
log_normal("WARNING: FILE symbol not found in base. Stripped object file or assembly source?\n");
return 3; /* NO_CHANGE */
}
/* create symbol lookup table */
base_locals = kpatch_elf_locals(kelf_base);