[PATCH] D159082: [ELF][RISCV] Implement --emit-relocs with relaxation
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 2 10:00:05 PDT 2023
jrtc27 added inline comments.
================
Comment at: lld/ELF/InputSection.cpp:355
+ if (config->relax && !config->relocatable && config->emachine == EM_RISCV) {
+ // On RISC-V, relaxation might change relocations so we cannot simply copy
+ // from the input section.
----------------
Isn’t that true of other architectures though? TLS relaxations, GOT->PCREL relaxation, …
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159082/new/
https://reviews.llvm.org/D159082
More information about the llvm-commits
mailing list