[lld] [ELF] Support relocatable files using CREL (PR #98115)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 07:26:46 PDT 2024


================
@@ -374,6 +376,8 @@ template <class ELFT>
 bool ICF<ELFT>::equalsVariable(const InputSection *a, const InputSection *b) {
   const RelsOrRelas<ELFT> ra = a->template relsOrRelas<ELFT>();
   const RelsOrRelas<ELFT> rb = b->template relsOrRelas<ELFT>();
+  if (ra.areRelocsCrel())
----------------
arichardson wrote:

Sam's question here.

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


More information about the llvm-commits mailing list