[PATCH] D134600: [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 1 11:33:47 PDT 2022
jrtc27 added a comment.
We have the RISC-V attributes section, you should use that (and --(no-)relax) to determine whether or not to use Zcmt relaxation, not invent some new flag, especially since compiler drivers can't use it unless they're sure the linker supports that new flag (think Clang + binutils as the common case where it's hard to know for sure; at least with LLD the likelihood is it's not older than the Clang version, especially in the embedded space) or you require users to opt-in at link time to the relaxation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134600/new/
https://reviews.llvm.org/D134600
More information about the llvm-commits
mailing list