On Mon, Mar 15, 2021 at 10:03 AM Josh Poimboeuf <[email protected]> wrote:
>
> Though instead of using objtool, it can be done in the module linker
> script:

This is obviously the way to go, but it raises another question: do we
guarantee that functions are aligned?

We actually have a couple of 32-bit x86 sub-architectures that do

    -falign-functions=0

ie Crusoe, Efficeon, and Cyrix III. Also "-Os" does that, iirc.

Is it only the static_call_sites entry itself that needs the
alignment? Or do we end up depending on the static call function being
at least 4-byte aligned too? The way it plays games with the key makes
me worry.

             Linus

Reply via email to