• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/include/llvm/Object/

Lines Matching defs:sec

540   void LoadVersionDefs(const Elf_Shdr *sec) const;
656 virtual Elf_Rela_Iter beginELFRela(const Elf_Shdr *sec) const {
657 return Elf_Rela_Iter(sec, (const char *)(base() + sec->sh_offset));
660 virtual Elf_Rela_Iter endELFRela(const Elf_Shdr *sec) const {
661 return Elf_Rela_Iter(sec, (const char *)
662 (base() + sec->sh_offset + sec->sh_size));
665 virtual Elf_Rel_Iter beginELFRel(const Elf_Shdr *sec) const {
666 return Elf_Rel_Iter(sec, (const char *)(base() + sec->sh_offset));
669 virtual Elf_Rel_Iter endELFRel(const Elf_Shdr *sec) const {
670 return Elf_Rel_Iter(sec, (const char *)
671 (base() + sec->sh_offset + sec->sh_size));
679 virtual error_code getSectionContents(const Elf_Shdr *sec,
703 LoadVersionDefs(const Elf_Shdr *sec) const {
704 unsigned vd_size = sec->sh_size; // Size of section in bytes
705 unsigned vd_count = sec->sh_info; // Number of Verdef entries
706 const char *sec_start = (const char*)base() + sec->sh_offset;
729 LoadVersionNeeds(const Elf_Shdr *sec) const {
730 unsigned vn_size = sec->sh_size; // Size of section in bytes
731 unsigned vn_count = sec->sh_info; // Number of Verneed entries
732 const char *sec_start = (const char*)base() + sec->sh_offset;
1123 const Elf_Shdr *sec = getSection(symb);
1124 if (!sec)
1128 Sec.p = reinterpret_cast<intptr_t>(sec);
1137 const uint8_t *sec = reinterpret_cast<const uint8_t *>(Sec.p);
1138 sec += Header->e_shentsize;
1139 Sec.p = reinterpret_cast<intptr_t>(sec);
1148 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1149 Result = StringRef(getString(dot_shstrtab_sec, sec->sh_name));
1157 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1158 Result = sec->sh_addr;
1166 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1167 Result = sec->sh_size;
1175 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1176 const char *start = (const char*)base() + sec->sh_offset;
1177 Result = StringRef(start, sec->sh_size);
1194 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1195 Result = sec->sh_addralign;
1203 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1204 if (sec->sh_flags & ELF::SHF_EXECINSTR)
1215 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1216 if (sec->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE)
1217 && sec->sh_type == ELF::SHT_PROGBITS)
1228 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1229 if (sec->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE)
1230 && sec->sh_type == ELF::SHT_NOBITS)
1241 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1242 if (sec->sh_flags & ELF::SHF_ALLOC)
1253 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1254 if (sec->sh_type == ELF::SHT_NOBITS)
1264 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1267 if (sec->sh_flags & ELF::SHT_NOBITS)
1288 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1289 typename RelocMap_t::const_iterator ittr = SectionRelocMap.find(sec);
1290 if (sec != 0 && ittr != SectionRelocMap.end()) {
1302 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p);
1303 typename RelocMap_t::const_iterator ittr = SectionRelocMap.find(sec);
1304 if (sec != 0 && ittr != SectionRelocMap.end()) {
1350 const Elf_Shdr *sec = getSection(Rel.w.b);
1351 switch (sec->sh_type) {
1364 IndexMap_t::const_iterator it = SymbolTableSectionsIndexMap.find(sec->sh_link);
1378 const Elf_Shdr *sec = getSection(Rel.w.b);
1379 switch (sec->sh_type) {
1401 const Elf_Shdr *sec = getSection(Rel.w.b);
1402 switch (sec->sh_type) {
1415 Result = offset - sec->sh_addr;
1423 const Elf_Shdr *sec = getSection(Rel.w.b);
1424 switch (sec->sh_type) {
1446 const Elf_Shdr *sec = getSection(Rel.w.b);
1449 switch (sec->sh_type) {
1788 const Elf_Shdr *sec = getSection(Rel.w.b);
1789 switch (sec->sh_type) {
1807 const Elf_Shdr *sec = getSection(Rel.w.b);
1812 switch (sec->sh_type) {
1828 const Elf_Sym *symb = getEntry<Elf_Sym>(sec->sh_link, symbol_index);
1830 if (error_code ec = getSymbolName(getSection(sec->sh_link), symb, symname))
2372 const Elf_Shdr *sec = getSection(Symb.d.b);
2373 if (sec->sh_type != ELF::SHT_SYMTAB || sec->sh_type != ELF::SHT_DYNSYM)
2376 return sec;