[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
================
@@ -592,6 +608,113 @@ static void finalizeShtGroup(OutputSection *os, InputSection *section) {
os->size = (1 + seen.size()) * sizeof(uint32_t);
}
+template <class uint>
+LLVM_ATTRIBUTE_ALWAYS_INLINE static void
+encodeOneCrel(raw_svector_ostream &os, uint &outOffset, uint32_t &outSymidx,
----------------
MaskRay wrote:
Thanks for the suggestion. Adopted `Elf_Crel<is64> &out`
https://github.com/llvm/llvm-project/pull/98115
More information about the llvm-commits
mailing list