Skip to content

Commit e959c27

Browse files
aaronp24jpoimboe
authored andcommitted
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: b51277e ("objtool: Ditch subcommands") Signed-off-by: Aaron Plattner <[email protected]> Link: https://lore.kernel.org/r/cb6a28832d24b2ebfafd26da9abb95f874c83045.1696355111.git.aplattner@nvidia.com Signed-off-by: Josh Poimboeuf <[email protected]>
1 parent 758a743 commit e959c27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/objtool/objtool.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,5 @@ int main(int argc, const char **argv)
146146
exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED);
147147
pager_init(UNUSED);
148148

149-
objtool_run(argc, argv);
150-
151-
return 0;
149+
return objtool_run(argc, argv);
152150
}

0 commit comments

Comments
 (0)