]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Propagate elf_truncate_section() error in elf_write()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:23 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:23 +0000 (14:45 -0700)
commit2bb23cbf3f21919ba17cf63404ec0224bd8bf4fb
tree77b10e2441fbe7d1c2c268fcb7d8a84fcef5f70d
parent9ebb662fab38a5942100e597b48de5ec9d5e714d
objtool: Propagate elf_truncate_section() error in elf_write()

Properly check and propagate the return value of elf_truncate_section()
to avoid silent failures.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/elf.c