Lines Matching refs:ELF
47 llvm::ELF::Elf32_Ehdr* hdr = in isELF()
48 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF()
49 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF()
73 size_t entsize = pRegion.size()/sizeof(llvm::ELF::Elf32_Sym); in readSymbols()
74 const llvm::ELF::Elf32_Sym* symtab = in readSymbols()
75 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.start()); in readSymbols()
110 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
111 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
113 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
133 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
217 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rela); in readRela()
218 const llvm::ELF::Elf32_Rela* relaTab = in readRela()
219 reinterpret_cast<const llvm::ELF::Elf32_Rela*>(pRegion.start()); in readRela()
254 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Rel); in readRel()
255 const llvm::ELF::Elf32_Rel* relTab = in readRel()
256 reinterpret_cast<const llvm::ELF::Elf32_Rel*>(pRegion.start()); in readRel()
286 llvm::ELF::Elf32_Ehdr* hdr = in isMyEndian()
287 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyEndian()
289 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
295 llvm::ELF::Elf32_Ehdr* hdr = in isMyMachine()
296 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isMyMachine()
306 llvm::ELF::Elf32_Ehdr* hdr = in fileType()
307 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in fileType()
315 case llvm::ELF::ET_REL: in fileType()
317 case llvm::ELF::ET_EXEC: in fileType()
319 case llvm::ELF::ET_DYN: in fileType()
321 case llvm::ELF::ET_CORE: in fileType()
323 case llvm::ELF::ET_NONE: in fileType()
333 llvm::ELF::Elf32_Ehdr* ehdr = in readSectionHeaders()
334 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in readSectionHeaders()
358 llvm::ELF::Elf32_Shdr *shdr = NULL; in readSectionHeaders()
370 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
373 shdr = reinterpret_cast<llvm::ELF::Elf32_Shdr*>(shdr_region->start()); in readSectionHeaders()
385 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
387 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
395 llvm::ELF::Elf32_Shdr * shdrTab = in readSectionHeaders()
396 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(shdr_region->start()); in readSectionHeaders()
486 sizeof(llvm::ELF::Elf32_Sym) * pSymIdx; in readSignature()
488 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf32_Sym)); in readSignature()
489 llvm::ELF::Elf32_Sym* entry = in readSignature()
490 reinterpret_cast<llvm::ELF::Elf32_Sym*>(symbol_region->start()); in readSignature()
549 const llvm::ELF::Elf32_Dyn* dynamic = in readDynamic()
550 (llvm::ELF::Elf32_Dyn*) dynamic_region->start(); in readDynamic()
553 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf32_Dyn); in readDynamic()
557 llvm::ELF::Elf32_Sword d_tag = 0x0; in readDynamic()
558 llvm::ELF::Elf32_Word d_val = 0x0; in readDynamic()
569 case llvm::ELF::DT_SONAME: in readDynamic()
574 case llvm::ELF::DT_NEEDED: in readDynamic()
577 case llvm::ELF::DT_NULL: in readDynamic()
608 llvm::ELF::Elf64_Ehdr* hdr = in isELF()
609 reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isELF()
610 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF()
634 size_t entsize = pRegion.size()/sizeof(llvm::ELF::Elf64_Sym); in readSymbols()
635 const llvm::ELF::Elf64_Sym* symtab = in readSymbols()
636 reinterpret_cast<const llvm::ELF::Elf64_Sym*>(pRegion.start()); in readSymbols()
671 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols()
672 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols()
674 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols()
694 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols()
773 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rela); in readRela()
774 const llvm::ELF::Elf64_Rela* relaTab = in readRela()
775 reinterpret_cast<const llvm::ELF::Elf64_Rela*>(pRegion.start()); in readRela()
810 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf64_Rel); in readRel()
811 const llvm::ELF::Elf64_Rel* relTab = in readRel()
812 reinterpret_cast<const llvm::ELF::Elf64_Rel*>(pRegion.start()); in readRel()
842 llvm::ELF::Elf64_Ehdr* hdr = in isMyEndian()
843 reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyEndian()
845 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
851 llvm::ELF::Elf64_Ehdr* hdr = in isMyMachine()
852 reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(pELFHeader); in isMyMachine()
862 llvm::ELF::Elf64_Ehdr* hdr = in fileType()
863 reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(pELFHeader); in fileType()
871 case llvm::ELF::ET_REL: in fileType()
873 case llvm::ELF::ET_EXEC: in fileType()
875 case llvm::ELF::ET_DYN: in fileType()
877 case llvm::ELF::ET_CORE: in fileType()
879 case llvm::ELF::ET_NONE: in fileType()
889 llvm::ELF::Elf64_Ehdr* ehdr = in readSectionHeaders()
890 reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(pELFHeader); in readSectionHeaders()
914 llvm::ELF::Elf64_Shdr *shdr = NULL; in readSectionHeaders()
926 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { in readSectionHeaders()
929 shdr = reinterpret_cast<llvm::ELF::Elf64_Shdr*>(shdr_region->start()); in readSectionHeaders()
941 if (shnum == llvm::ELF::SHN_UNDEF) in readSectionHeaders()
943 if (shstrtab == llvm::ELF::SHN_XINDEX) in readSectionHeaders()
951 llvm::ELF::Elf64_Shdr * shdrTab = in readSectionHeaders()
952 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(shdr_region->start()); in readSectionHeaders()
1042 sizeof(llvm::ELF::Elf64_Sym) * pSymIdx; in readSignature()
1044 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf64_Sym)); in readSignature()
1045 llvm::ELF::Elf64_Sym* entry = in readSignature()
1046 reinterpret_cast<llvm::ELF::Elf64_Sym*>(symbol_region->start()); in readSignature()
1105 const llvm::ELF::Elf64_Dyn* dynamic = in readDynamic()
1106 (llvm::ELF::Elf64_Dyn*) dynamic_region->start(); in readDynamic()
1109 size_t numOfEntries = dynamic_sect->size() / sizeof(llvm::ELF::Elf64_Dyn); in readDynamic()
1113 llvm::ELF::Elf64_Sxword d_tag = 0x0; in readDynamic()
1114 llvm::ELF::Elf64_Xword d_val = 0x0; in readDynamic()
1125 case llvm::ELF::DT_SONAME: in readDynamic()
1130 case llvm::ELF::DT_NEEDED: in readDynamic()
1133 case llvm::ELF::DT_NULL: in readDynamic()