Lines Matching refs:ELF
48 const llvm::ELF::Elf32_Ehdr* hdr = in isELF()
49 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF()
50 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF()
74 size_t entsize = pRegion.size()/sizeof(llvm::ELF::Elf32_Sym); in readSymbols()
75 const llvm::ELF::Elf32_Sym* symtab = in readSymbols()
76 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.begin()); in readSymbols()
111 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
112 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
114 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
134 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
218 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rela); in readRela()
219 const llvm::ELF::Elf32_Rela* relaTab = in readRela()
220 reinterpret_cast<const llvm::ELF::Elf32_Rela*>(pRegion.begin()); in readRela()
246 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rel); in readRel()
247 const llvm::ELF::Elf32_Rel* relTab = in readRel()
248 reinterpret_cast<const llvm::ELF::Elf32_Rel*>(pRegion.begin()); in readRel()
271 const llvm::ELF::Elf32_Ehdr* hdr = in isMyEndian()
272 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyEndian()
274 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
280 const llvm::ELF::Elf32_Ehdr* hdr = in isMyMachine()
281 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyMachine()
291 const llvm::ELF::Elf32_Ehdr* hdr = in fileType()
292 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in fileType()
300 case llvm::ELF::ET_REL: in fileType()
302 case llvm::ELF::ET_EXEC: in fileType()
304 case llvm::ELF::ET_DYN: in fileType()
306 case llvm::ELF::ET_CORE: in fileType()
308 case llvm::ELF::ET_NONE: in fileType()
318 const llvm::ELF::Elf32_Ehdr* ehdr = in readSectionHeaders()
319 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in readSectionHeaders()
343 const llvm::ELF::Elf32_Shdr *shdr = NULL; in readSectionHeaders()
355 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
358 shdr = reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin()); in readSectionHeaders()
369 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
371 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
379 const llvm::ELF::Elf32_Shdr* shdrTab = in readSectionHeaders()
380 reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin()); in readSectionHeaders()
460 sizeof(llvm::ELF::Elf32_Sym) * pSymIdx; in readSignature()
462 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf32_Sym)); in readSignature()
463 const llvm::ELF::Elf32_Sym* entry = in readSignature()
464 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(symbol_region.begin()); in readSignature()
516 const llvm::ELF::Elf32_Dyn* dynamic = in readDynamic()
517 reinterpret_cast<const llvm::ELF::Elf32_Dyn*>(dynamic_region.begin()); in readDynamic()
520 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf32_Dyn); in readDynamic()
524 llvm::ELF::Elf32_Sword d_tag = 0x0; in readDynamic()
525 llvm::ELF::Elf32_Word d_val = 0x0; in readDynamic()
536 case llvm::ELF::DT_SONAME: in readDynamic()
541 case llvm::ELF::DT_NEEDED: in readDynamic()
544 case llvm::ELF::DT_NULL: in readDynamic()
573 const llvm::ELF::Elf64_Ehdr* hdr = in isELF()
574 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isELF()
575 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF()
599 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Sym); in readSymbols()
600 const llvm::ELF::Elf64_Sym* symtab = in readSymbols()
601 reinterpret_cast<const llvm::ELF::Elf64_Sym*>(pRegion.begin()); in readSymbols()
636 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
637 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
639 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
659 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
738 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rela); in readRela()
739 const llvm::ELF::Elf64_Rela* relaTab = in readRela()
740 reinterpret_cast<const llvm::ELF::Elf64_Rela*>(pRegion.begin()); in readRela()
768 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rel); in readRel()
769 const llvm::ELF::Elf64_Rel* relTab = in readRel()
770 reinterpret_cast<const llvm::ELF::Elf64_Rel*>(pRegion.begin()); in readRel()
792 const llvm::ELF::Elf64_Ehdr* hdr = in isMyEndian()
793 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyEndian()
795 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
801 const llvm::ELF::Elf64_Ehdr* hdr = in isMyMachine()
802 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyMachine()
812 const llvm::ELF::Elf64_Ehdr* hdr = in fileType()
813 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in fileType()
821 case llvm::ELF::ET_REL: in fileType()
823 case llvm::ELF::ET_EXEC: in fileType()
825 case llvm::ELF::ET_DYN: in fileType()
827 case llvm::ELF::ET_CORE: in fileType()
829 case llvm::ELF::ET_NONE: in fileType()
839 const llvm::ELF::Elf64_Ehdr* ehdr = in readSectionHeaders()
840 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in readSectionHeaders()
864 const llvm::ELF::Elf64_Shdr *shdr = NULL; in readSectionHeaders()
876 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
879 shdr = reinterpret_cast<const llvm::ELF::Elf64_Shdr*>(shdr_region.begin()); in readSectionHeaders()
890 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
892 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
900 const llvm::ELF::Elf64_Shdr* shdrTab = in readSectionHeaders()
901 reinterpret_cast<const llvm::ELF::Elf64_Shdr*>(shdr_region.begin()); in readSectionHeaders()
981 sizeof(llvm::ELF::Elf64_Sym) * pSymIdx; in readSignature()
983 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf64_Sym)); in readSignature()
984 const llvm::ELF::Elf64_Sym* entry = in readSignature()
985 reinterpret_cast<const llvm::ELF::Elf64_Sym*>(symbol_region.begin()); in readSignature()
1037 const llvm::ELF::Elf64_Dyn* dynamic = in readDynamic()
1038 reinterpret_cast<const llvm::ELF::Elf64_Dyn*>(dynamic_region.begin()); in readDynamic()
1041 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf64_Dyn); in readDynamic()
1045 llvm::ELF::Elf64_Sxword d_tag = 0x0; in readDynamic()
1046 llvm::ELF::Elf64_Xword d_val = 0x0; in readDynamic()
1057 case llvm::ELF::DT_SONAME: in readDynamic()
1062 case llvm::ELF::DT_NEEDED: in readDynamic()
1065 case llvm::ELF::DT_NULL: in readDynamic()