<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/tools/objtool/tests/generic/test-module-object.sh, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/tools/objtool/tests/generic/test-module-object.sh?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/tools/objtool/tests/generic/test-module-object.sh?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2026-09-21T09:06:08Z</updated>
<entry>
<title>objtool/klp: Add test for klp reloc section naming in module objects</title>
<updated>2026-09-21T09:06:08Z</updated>
<author>
<name>Song Liu</name>
<email>song@kernel.org</email>
</author>
<published>2026-09-16T18:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2d17a35f6c9489884e6a5ff7cb0d6b150d413371'/>
<id>urn:sha1:2d17a35f6c9489884e6a5ff7cb0d6b150d413371</id>
<content type='text'>
klp diff names the intermediate __klp_relocs section after the object the
relocation belongs to, and post-link turns that into
.klp.rela.&lt;object&gt;.&lt;sec&gt;. Name it after the wrong object and the kernel
applies the relocation when the wrong module loads, or never.

The fixture is the first here to honour MODNAME: most hardcode
name=vmlinux, so passing -DMODNAME to them silently does nothing and the
test quietly becomes a vmlinux test.

This tests the behavior of commit 07f14d6af9d7 ("objtool/klp: Fix
cross-module klp relocation section naming").

Assisted-by: Claude:claude-opus-4
Based-on-test-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Assisted-by: Claude:claude-opus-5
Signed-off-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Link: https://patch.msgid.link/20260916184351.2720310-29-song@kernel.org
</content>
</entry>
</feed>
