]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Make find_symbol_containing() less arbitrary
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:21 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:23 +0000 (14:45 -0700)
commit07e1c3fd86d7a2ddce3ebc6b7390590c8524a484
tree8dabd4e428edb8adeb32ae3f1a6d6ec5083f9b5c
parentb37491d72b43c3a322d396c2d8e951a10be70c17
objtool: Make find_symbol_containing() less arbitrary

In the rare case of overlapping symbols, find_symbol_containing() just
returns the first one it finds.  Make it slightly less arbitrary by
returning the smallest symbol with size > 0.

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