Lines Matching refs:hdr
46 const llvm::ELF::Elf32_Ehdr* hdr = in isELF() local
48 if (memcmp(llvm::ELF::ElfMagic, hdr, 4) == 0) in isELF()
261 const llvm::ELF::Elf32_Ehdr* hdr = in isMyEndian() local
264 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
269 const llvm::ELF::Elf32_Ehdr* hdr = in isMyMachine() local
273 return (hdr->e_machine == target().getInfo().machine()); in isMyMachine()
274 return (mcld::bswap16(hdr->e_machine) == target().getInfo().machine()); in isMyMachine()
279 const llvm::ELF::Elf32_Ehdr* hdr = in fileType() local
283 type = hdr->e_type; in fileType()
285 type = mcld::bswap16(hdr->e_type); in fileType()
546 const llvm::ELF::Elf64_Ehdr* hdr = in isELF() local
548 if (memcmp(llvm::ELF::ElfMagic, hdr, 4) == 0) in isELF()
755 const llvm::ELF::Elf64_Ehdr* hdr = in isMyEndian() local
758 return (hdr->e_ident[llvm::ELF::EI_DATA] == llvm::ELF::ELFDATA2LSB); in isMyEndian()
763 const llvm::ELF::Elf64_Ehdr* hdr = in isMyMachine() local
767 return (hdr->e_machine == target().getInfo().machine()); in isMyMachine()
768 return (mcld::bswap16(hdr->e_machine) == target().getInfo().machine()); in isMyMachine()
773 const llvm::ELF::Elf64_Ehdr* hdr = in fileType() local
777 type = hdr->e_type; in fileType()
779 type = mcld::bswap16(hdr->e_type); in fileType()