Home | History | Annotate | Download | only in obj2yaml

Lines Matching defs:Shdr

30   std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
31 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr,
34 std::error_code dumpRelocation(const Elf_Shdr *Shdr, const RelT *Rel,
37 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
38 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
40 dumpContentSection(const Elf_Shdr *Shdr);
143 const Elf_Shdr *Shdr = Obj.getSection(&*Sym);
144 if (!Shdr)
147 NameOrErr = Obj.getSectionName(Shdr);
157 std::error_code ELFDumper<ELFT>::dumpRelocation(const Elf_Shdr *Shdr,
164 auto NamePair = Obj.getRelocationSymbol(Shdr, Rel);
178 std::error_code ELFDumper<ELFT>::dumpCommonSection(const Elf_Shdr *Shdr,
180 S.Type = Shdr->sh_type;
181 S.Flags = Shdr->sh_flags;
182 S.Address = Shdr->sh_addr;
183 S.AddressAlign = Shdr->sh_addralign;
185 ErrorOr<StringRef> NameOrErr = Obj.getSectionName(Shdr);
190 if (Shdr->sh_link != ELF::SHN_UNDEF) {
191 if (const Elf_Shdr *LinkSection = Obj.getSection(Shdr->sh_link)) {
204 ELFDumper<ELFT>::dumpCommonRelocationSection(const Elf_Shdr *Shdr,
206 if (std::error_code EC = dumpCommonSection(Shdr, S))
209 if (const Elf_Shdr *InfoSection = Obj.getSection(Shdr->sh_info)) {
221 ELFDumper<ELFT>::dumpRelSection(const Elf_Shdr *Shdr) {
222 assert(Shdr->sh_type == ELF::SHT_REL && "Section type is not SHT_REL");
225 if (std::error_code EC = dumpCommonRelocationSection(Shdr, *S))
228 for (auto RI = Obj.begin_rel(Shdr), RE = Obj.end_rel(Shdr); RI != RE;
231 if (std::error_code EC = dumpRelocation(Shdr, &*RI, R))
241 ELFDumper<ELFT>::dumpRelaSection(const Elf_Shdr *Shdr) {
242 assert(Shdr->sh_type == ELF::SHT_RELA && "Section type is not SHT_RELA");
245 if (std::error_code EC = dumpCommonRelocationSection(Shdr, *S))
248 for (auto RI = Obj.begin_rela(Shdr), RE = Obj.end_rela(Shdr); RI != RE;
251 if (std::error_code EC = dumpRelocation(Shdr, &*RI, R))
262 ELFDumper<ELFT>::dumpContentSection(const Elf_Shdr *Shdr) {
265 if (std::error_code EC = dumpCommonSection(Shdr, *S))
268 ErrorOr<ArrayRef<uint8_t>> ContentOrErr = Obj.getSectionContents(Shdr);