Lines Matching refs:Shdr
131 const typename ELFT::Shdr &Sec) { in getSecIndexForError()
145 const typename ELFT::Shdr &Sec) { in describe()
170 const typename ELFT::Shdr &Sec) { in checkSectionOffsets()
188 const typename ELFT::Shdr &Sec) { in checkSectionVMA()
207 const typename ELFT::Shdr &Sec) { in isSectionInSegment()
303 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const;
429 Elf_Note_Iterator notes_begin(const Elf_Shdr &Shdr, Error &Err) const { in notes_begin() argument
430 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
432 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin()
434 createError("invalid offset (0x" + Twine::utohexstr(Shdr.sh_offset) + in notes_begin()
435 ") or size (0x" + Twine::utohexstr(Shdr.sh_size) + ")"); in notes_begin()
439 if (Shdr.sh_addralign != 0 && Shdr.sh_addralign != 1 && in notes_begin()
440 Shdr.sh_addralign != 4 && Shdr.sh_addralign != 8) { in notes_begin()
441 Err = createError("alignment (" + Twine(Shdr.sh_addralign) + in notes_begin()
445 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, in notes_begin()
446 std::max<size_t>(Shdr.sh_addralign, 4), Err); in notes_begin()
473 iterator_range<Elf_Note_Iterator> notes(const Elf_Shdr &Shdr, in notes() argument
475 return make_range(notes_begin(Shdr, Err), notes_end()); in notes()
532 inline Expected<const typename ELFT::Shdr *>
575 Expected<const typename ELFT::Shdr *>
585 Expected<const typename ELFT::Shdr *>
1207 Expected<const typename ELFT::Shdr *>
1305 ELFFile<ELFT>::getLinkAsStrtab(const typename ELFT::Shdr &Sec) const { in getLinkAsStrtab()
1306 Expected<const typename ELFT::Shdr *> StrTabSecOrErr = in getLinkAsStrtab()