[lld] [llvm] [RISCV] Fix alignment when mixing rvc/norvc relax/norelax code (PR #150159)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 26 23:05:08 PDT 2025


MaskRay wrote:

> I think we need to modify MCSection::LinkerRelaxable. It should be set to a value that indicates the `LayoutOrder` of the first linker-relaxable fragment. Then, relaxAlign should be updated to verify if the FT_Align fragment appears after this first linker-relaxable fragment.

See #150816

https://github.com/llvm/llvm-project/pull/150159


More information about the llvm-commits mailing list