Re: [tip: objtool/urgent] objtool: Consolidate annotation macros
From: Linus Torvalds
Date: Wed Dec 03 2025 - 14:24:25 EST
On Wed, 3 Dec 2025 at 11:17, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> > What are the actual entry sizes, though? Because maybe we could just
> > use alignment instead - which is trivially settable in the linker
> > script.
>
> That could work. At least .altinstructions (14 bytes) and __ex_table
> (12 bytes) aren't power of two.
>
> We could certainly pad them, That does increase memory usage though. On
> my defconfig kernel that would add about ~11k.
Ok, if they aren't all naturally aligned, let's just keep with the
horrid 'mergeable' thing for now.
It's not wonderful, but nobody sane looks at the generated asm anyway.
And regardless, it's better than it used to be.
Linus