Commit e959c279 authored by Aaron Plattner's avatar Aaron Plattner Committed by Josh Poimboeuf

objtool: Propagate early errors

If objtool runs into a problem that causes it to exit early, the overall
tool still returns a status code of 0, which causes the build to
continue as if nothing went wrong.

Note this only affects early errors, as later errors are still ignored
by check().

Fixes: b51277eb ("objtool: Ditch subcommands")
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
Link: https://lore.kernel.org/r/cb6a28832d24b2ebfafd26da9abb95f874c83045.1696355111.git.aplattner@nvidia.comSigned-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
parent 758a7430
...@@ -146,7 +146,5 @@ int main(int argc, const char **argv) ...@@ -146,7 +146,5 @@ int main(int argc, const char **argv)
exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED); exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED);
pager_init(UNUSED); pager_init(UNUSED);
objtool_run(argc, argv); return objtool_run(argc, argv);
return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment