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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 11:00:47 PDT 2024


================
@@ -37,11 +37,24 @@ LLVM_LIBRARY_VISIBILITY extern std::vector<Partition> partitions;
 
 // Returned by InputSectionBase::relsOrRelas. At least one member is empty.
 template <class ELFT> struct RelsOrRelas {
-  ArrayRef<typename ELFT::Rel> rels;
-  ArrayRef<typename ELFT::Rela> relas;
+  Relocs<typename ELFT::Rel> rels;
----------------
MaskRay wrote:

I believe the comment has been stale before this patch. Updated

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


More information about the llvm-commits mailing list