This adds support of reading and writing section groups.
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Object/ELFYAML.h | ||
---|---|---|
88 | Can we remove now the Info member field from the RelocationSection class? | |
lib/Object/ELFYAML.cpp | ||
526 | Is it possible/correct to get or create a group section with missed Members list? Should we made this field mandatory? | |
tools/obj2yaml/elf2yaml.cpp | ||
306 | I would write this loop with the if/else statement. It's a bit shorter and emphasizes the fact that we have two kinds of group section members: for (int i = 0; i < count; i++) { if (groupMembers[i] == llvm::ELF::GRP_COMDAT) { s.sectionNameOrType = "GRP_COMDAT"; } else { const Elf_Shdr *sHdr = Obj.getSection(groupMembers[i]); ErrorOr<StringRef> sectionName = Obj.getSectionName(sHdr); if (std::error_code ec = sectionName.getError()) return ec; s.sectionNameOrType = *sectionName; } S->Members.push_back(s); } | |
tools/yaml2obj/yaml2elf.cpp | ||
392 | Why does this error message mention the relocation section type? |
Can we remove now the Info member field from the RelocationSection class?