summaryrefslogtreecommitdiff
path: root/tools/objtool/builtin-check.c
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2025-09-17 09:03:51 -0700
committerJosh Poimboeuf <jpoimboe@kernel.org>2025-10-14 14:46:49 -0700
commit03c19a99ee69f4680d7da11c164ac655b4946b99 (patch)
tree7a54a93e28cde28a5a42a48df8d45b4a3d029c6d /tools/objtool/builtin-check.c
parent2c05ca02621837af7cd8fab6ae7421b9cd5dff6e (diff)
objtool: Add elf_create_file()
Add interface to enable the creation of a new ELF file. Acked-by: Petr Mladek <pmladek@suse.com> Tested-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/builtin-check.c')
-rw-r--r--tools/objtool/builtin-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c
index fc91bc5cdb6b..99697141964a 100644
--- a/tools/objtool/builtin-check.c
+++ b/tools/objtool/builtin-check.c
@@ -329,5 +329,5 @@ int objtool_run(int argc, const char **argv)
if (!opts.dryrun && file->elf->changed && elf_write(file->elf))
return 1;
- return 0;
+ return elf_close(file->elf);
}