summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2023-10-05 03:08:18 +0300
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-10-06 03:01:11 +0300
commite959c279d391c10b35ce300fb4b0fe3b98e86bd2 (patch)
tree169b449332e8c78ca2ff499c7a396b40a04289fc
parent758a74306f1076b50cb9872af18cb900bafd9497 (diff)
downloadlinux-e959c279d391c10b35ce300fb4b0fe3b98e86bd2.tar.xz
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: b51277eb9775 ("objtool: Ditch subcommands") Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Link: https://lore.kernel.org/r/cb6a28832d24b2ebfafd26da9abb95f874c83045.1696355111.git.aplattner@nvidia.com Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
-rw-r--r--tools/objtool/objtool.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/objtool/objtool.c b/tools/objtool/objtool.c
index c54f7235c5d9..f40febdd6e36 100644
--- a/tools/objtool/objtool.c
+++ b/tools/objtool/objtool.c
@@ -146,7 +146,5 @@ int main(int argc, const char **argv)
exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED);
pager_init(UNUSED);
- objtool_run(argc, argv);
-
- return 0;
+ return objtool_run(argc, argv);
}