[llvm-branch-commits] [llvm-objcopy] Support CREL (PR #97521)
Peter Smith via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 3 09:28:03 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);
----------------
smithp35 wrote:
Would `RelsOrRelas` be a better name as it will make the meaning of first and second more obvious at the point of use?
https://github.com/llvm/llvm-project/pull/97521
More information about the llvm-branch-commits
mailing list