[lld] [lld][ELF] Support relax R_LARCH_ALIGN (PR #78692)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 15:03:32 PST 2024


MaskRay wrote:

> I'd suggest make some tests to see if `--gc-section` works with relaxation. In the BFD linker we found `--gc-section` is somehow broken now with relaxation :(

With lld's structure, a `--gc-sections` test is not necessary. I'd add one test like `lld/test/ELF/riscv-relax-emit-relocs.s`

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


More information about the llvm-commits mailing list