Re: [PATCH] objtool/klp: Copy constant pool entries for local labels

From: Ravindran, Binoy

Date: Mon Nov 30 2026 - 18:58:44 EST



On Mon, Nov 30, 2026, Joe Lawrence wrote:
> Can you take a look at
> tools/objtool/Documentation/{klp-write-tests.txt,klp-test-design.txt}
> (or point your AI agent there) and incorporate a test case into the
> objtool tests?

Thanks, Joe. v2 adds the test in generic/, and it checks the bytes in
.rodata.cst8 rather than the label name, so it covers both compilers:

https://lore.kernel.org/r/20261130-objtool-klp-cst-v2-0-2718c17fca37@xxxxxx

It fails with the fix reverted and passes with it, under gcc and clang.

Thanks,
Binoy