Re: [PATCH 3/8] LoongArch: Add special section entry sizes for KLP support

From: WangYuli

Date: Fri Jun 05 2026 - 04:50:53 EST


Hi Dongtai,

Have you actually tested your changes with LLVM?

For example:

asm volatile(
".pushsection .altinstructions, \"aM\", @progbits, "
__stringify(ALT_INSTR_SIZE) "\n\t"
".long 0\n\t"
".popsection\n\t"
);


BTW, "awM" is dangerous, pls see how did x86 do.

And head.S doesn't need to include asm-offsets.h, it seems
stackframe.h has included it.

Thanks,
---
WangYuli