[llvm-dev] [LLD] Linker Relaxation

PkmX via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 11 03:09:13 PDT 2017


Hi,

Does lld support linker relaxation that may shrink code size? As far
as I see lld seems to assume that the content of input sections to be
fixed other than patching up relocations, but I believe some targets
may benefit the extra optimization opportunity with relaxation.
Specifically, I'm currently working on adding support for RISC-V in
lld, and RISC-V heavily relies on linker relaxation to remove
extraneous code and to handle alignment. Since linker relaxation may
be of interest to other targets as well, I'm wondering what would be a
good way to modify lld to support that. Thanks.

--
Chih-Mao Chen (PkmX)
Software R&D, Andes Technology


More information about the llvm-dev mailing list