summaryrefslogtreecommitdiff
path: root/tools/perf/lib/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-01-21 11:25:32 -0500
committerPeter Zijlstra <peterz@infradead.org>2026-01-21 20:25:14 +0100
commit3f2de814c0597c97d5abe09a1635d8c4e2fddaf2 (patch)
tree7cf6d34da96ea3e20e3fc9ea733e1356402ebd60 /tools/perf/lib/git@git.tavy.me:linux.git
parent24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 (diff)
objtool: Fix libopcodes linking with static libraries
Commit 436326bc525d ("objtool: fix build failure due to missing libopcodes check") tests for libopcodes using an empty main(), which passes even when static libraries lack their dependencies. This causes undefined reference errors (xmalloc, bfd_get_bits, etc.) when linking against static libopcodes without its required libbfd and libiberty. Fix by testing with an actual libopcodes symbol and trying increasingly complete library combinations until one succeeds. Fixes: 436326bc525d ("objtool: fix build failure due to missing libopcodes check") Reported-by: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Rafael J. Wysocki (Intel) <rafael@kernel.org> Link: https://patch.msgid.link/20260121162532.1596238-1-sashal@kernel.org
Diffstat (limited to 'tools/perf/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions