Lines Matching refs:ELF

46   const llvm::ELF::Elf32_Ehdr* hdr =  in isELF()
47 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF()
48 if (memcmp(llvm::ELF::ElfMagic, hdr, 4) == 0) in isELF()
70 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Sym); in readSymbols()
71 const llvm::ELF::Elf32_Sym* symtab = in readSymbols()
72 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.begin()); in readSymbols()
105 if (pInput.type() == Input::Object && st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
106 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
108 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
129 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
208 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rela); in readRela()
209 const llvm::ELF::Elf32_Rela* relaTab = in readRela()
210 reinterpret_cast<const llvm::ELF::Elf32_Rela*>(pRegion.begin()); in readRela()
237 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rel); in readRel()
238 const llvm::ELF::Elf32_Rel* relTab = in readRel()
239 reinterpret_cast<const llvm::ELF::Elf32_Rel*>(pRegion.begin()); in readRel()
261 const llvm::ELF::Elf32_Ehdr* hdr = in isMyEndian()
262 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyEndian()
264 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
269 const llvm::ELF::Elf32_Ehdr* hdr = in isMyMachine()
270 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyMachine()
279 const llvm::ELF::Elf32_Ehdr* hdr = in fileType()
280 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in fileType()
288 case llvm::ELF::ET_REL: in fileType()
290 case llvm::ELF::ET_EXEC: in fileType()
292 case llvm::ELF::ET_DYN: in fileType()
294 case llvm::ELF::ET_CORE: in fileType()
296 case llvm::ELF::ET_NONE: in fileType()
305 const llvm::ELF::Elf32_Ehdr* ehdr = in readSectionHeaders()
306 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in readSectionHeaders()
329 const llvm::ELF::Elf32_Shdr* shdr = NULL; in readSectionHeaders()
341 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
344 shdr = reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin()); in readSectionHeaders()
354 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
356 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
364 const llvm::ELF::Elf32_Shdr* shdrTab = in readSectionHeaders()
365 reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin()); in readSectionHeaders()
439 sizeof(llvm::ELF::Elf32_Sym) * pSymIdx; in readSignature()
441 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf32_Sym)); in readSignature()
442 const llvm::ELF::Elf32_Sym* entry = in readSignature()
443 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(symbol_region.begin()); in readSignature()
493 const llvm::ELF::Elf32_Dyn* dynamic = in readDynamic()
494 reinterpret_cast<const llvm::ELF::Elf32_Dyn*>(dynamic_region.begin()); in readDynamic()
497 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf32_Dyn); in readDynamic()
500 llvm::ELF::Elf32_Sword d_tag = 0x0; in readDynamic()
501 llvm::ELF::Elf32_Word d_val = 0x0; in readDynamic()
512 case llvm::ELF::DT_SONAME: in readDynamic()
517 case llvm::ELF::DT_NEEDED: in readDynamic()
520 case llvm::ELF::DT_NULL: in readDynamic()
546 const llvm::ELF::Elf64_Ehdr* hdr = in isELF()
547 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isELF()
548 if (memcmp(llvm::ELF::ElfMagic, hdr, 4) == 0) in isELF()
570 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Sym); in readSymbols()
571 const llvm::ELF::Elf64_Sym* symtab = in readSymbols()
572 reinterpret_cast<const llvm::ELF::Elf64_Sym*>(pRegion.begin()); in readSymbols()
605 if (pInput.type() == Input::Object && st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
606 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
608 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
629 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
703 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rela); in readRela()
704 const llvm::ELF::Elf64_Rela* relaTab = in readRela()
705 reinterpret_cast<const llvm::ELF::Elf64_Rela*>(pRegion.begin()); in readRela()
732 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rel); in readRel()
733 const llvm::ELF::Elf64_Rel* relTab = in readRel()
734 reinterpret_cast<const llvm::ELF::Elf64_Rel*>(pRegion.begin()); in readRel()
755 const llvm::ELF::Elf64_Ehdr* hdr = in isMyEndian()
756 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyEndian()
758 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
763 const llvm::ELF::Elf64_Ehdr* hdr = in isMyMachine()
764 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyMachine()
773 const llvm::ELF::Elf64_Ehdr* hdr = in fileType()
774 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in fileType()
782 case llvm::ELF::ET_REL: in fileType()
784 case llvm::ELF::ET_EXEC: in fileType()
786 case llvm::ELF::ET_DYN: in fileType()
788 case llvm::ELF::ET_CORE: in fileType()
790 case llvm::ELF::ET_NONE: in fileType()
799 const llvm::ELF::Elf64_Ehdr* ehdr = in readSectionHeaders()
800 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(pELFHeader); in readSectionHeaders()
823 const llvm::ELF::Elf64_Shdr* shdr = NULL; in readSectionHeaders()
835 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
838 shdr = reinterpret_cast<const llvm::ELF::Elf64_Shdr*>(shdr_region.begin()); in readSectionHeaders()
848 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
850 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
858 const llvm::ELF::Elf64_Shdr* shdrTab = in readSectionHeaders()
859 reinterpret_cast<const llvm::ELF::Elf64_Shdr*>(shdr_region.begin()); in readSectionHeaders()
933 sizeof(llvm::ELF::Elf64_Sym) * pSymIdx; in readSignature()
935 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf64_Sym)); in readSignature()
936 const llvm::ELF::Elf64_Sym* entry = in readSignature()
937 reinterpret_cast<const llvm::ELF::Elf64_Sym*>(symbol_region.begin()); in readSignature()
987 const llvm::ELF::Elf64_Dyn* dynamic = in readDynamic()
988 reinterpret_cast<const llvm::ELF::Elf64_Dyn*>(dynamic_region.begin()); in readDynamic()
991 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf64_Dyn); in readDynamic()
994 llvm::ELF::Elf64_Sxword d_tag = 0x0; in readDynamic()
995 llvm::ELF::Elf64_Xword d_val = 0x0; in readDynamic()
1006 case llvm::ELF::DT_SONAME: in readDynamic()
1011 case llvm::ELF::DT_NEEDED: in readDynamic()
1014 case llvm::ELF::DT_NULL: in readDynamic()