[llvm-branch-commits] [llvm-objcopy] Support CREL (PR #97521)

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 3 10:52:25 PDT 2024


================
@@ -1861,7 +1886,15 @@ template <class ELFT> Error ELFBuilder<ELFT>::readSections(bool EnsureSymtab) {
 
       const typename ELFFile<ELFT>::Elf_Shdr *Shdr =
           Sections->begin() + RelSec->Index;
-      if (RelSec->Type == SHT_REL) {
+      if (RelSec->Type == SHT_CREL) {
+        auto Rels = ElfFile.crels(*Shdr);
----------------
MaskRay wrote:

Agreed. Renamed to `RelsOrRelas`

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


More information about the llvm-branch-commits mailing list