[lld] [lld][LoongArch] Print error when encountering R_LARCH_ALIGN (PR #67424)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 21:47:25 PDT 2023


SixWeining wrote:

> For most align directives, not respecting the required alignment due to linker not support `-mrelax` isn't really an issue. Printing an error would likely be more disruptive. Perhaps the choice is just to silently ignore.

Thanks. It makes sense. Ignoring this reloc doesn’t cause functionality issues but performance issues (thinking about the align directives emitted by function address alignment or loop alignment).

I will update this PR by ignoring this reloc.


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


More information about the llvm-commits mailing list