summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2026-09-16 11:43:51 -0700
committerIngo Molnar <mingo@kernel.org>2026-09-21 11:12:08 +0200
commit945537271df1e3680be9b32af7041ac20f1184fb (patch)
treea78f48dd73a1c7fbc7a409aedb25cc2ac927e935 /include/uapi/linux
parent317cf7bbfa3de0fb61451e9b0b11d20831fb9f9a (diff)
downloadlinux-next-945537271df1e3680be9b32af7041ac20f1184fb.tar.gz
linux-next-945537271df1e3680be9b32af7041ac20f1184fb.zip
objtool/klp: Add test for ThinLTO symbols sharing a demangled name
A file-local symbol which ThinLTO has to make visible is renamed helper.llvm.<hash>. With two such helpers in one link, the original and the patched object hold two each, all four spelled differently, and demangling gives "helper" for every one of them -- so the name alone cannot say which corresponds to which. Three translation units, two with a static helper of the same name and a third calling into both, which is what forces the promotion. Only one helper changes: paired correctly that means exactly one is cloned, and paired the wrong way round the other is, or both are. Had both bodies changed, both would be cloned either way and the test would prove nothing -- which is how the first version of this was written. The outcome is asserted, not the machinery. With the clang tested here the pairing survives disabling the .llvm.<hash> suffix map and stubbing out llvm_suffix() entirely, so no single-line sabotage distinguishes it; the tiered matcher this case was written for is not needed for this shape. The test says so rather than implying otherwise. Assisted-by: Claude:claude-opus-4 Based-on-test-by: Joe Lawrence <joe.lawrence@redhat.com> Assisted-by: Claude:claude-opus-5 Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20260916184351.2720310-59-song@kernel.org
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions