Skip to content

Commit fdf5ff2

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Upgrade "Linked object detected" warning to error
Force the user to fix their cmdline if they forget the '--link' option. Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Brendan Jackman <[email protected]> Link: https://lore.kernel.org/r/8380bbf3a0fa86e03fd63f60568ae06a48146bc1.1741975349.git.jpoimboe@kernel.org
1 parent acc8c6a commit fdf5ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/objtool/builtin-check.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ int objtool_run(int argc, const char **argv)
198198
return 1;
199199

200200
if (!opts.link && has_multiple_files(file->elf)) {
201-
ERROR("Linked object detected, forcing --link");
202-
opts.link = true;
201+
ERROR("Linked object requires --link");
202+
goto err;
203203
}
204204

205205
ret = check(file);

0 commit comments

Comments
 (0)