Re: static_branch/jump_label vs branch merging

From: Florian Weimer
Date: Fri Apr 09 2021 - 06:55:18 EST


* Ard Biesheuvel:

> Wouldn't that require the compiler to interpret the contents of the
> asm() block?

Yes and no. It would require proper toolchain support, so in this case
a new ELF relocation type, with compiler, assembler, and linker support
to generate those relocations and process them. As far as I understand
it, the kernel doesn't do things this way.

Thanks,
Florian