Searched refs:eHdr (Results 1 – 2 of 2) sorted by relevance
3690 auto *eHdr = reinterpret_cast<typename ELFT::Ehdr *>(buf); in writeEhdr() local3691 eHdr->e_ident[EI_CLASS] = config->is64 ? ELFCLASS64 : ELFCLASS32; in writeEhdr()3692 eHdr->e_ident[EI_DATA] = config->isLE ? ELFDATA2LSB : ELFDATA2MSB; in writeEhdr()3693 eHdr->e_ident[EI_VERSION] = EV_CURRENT; in writeEhdr()3694 eHdr->e_ident[EI_OSABI] = config->osabi; in writeEhdr()3695 eHdr->e_ident[EI_ABIVERSION] = getAbiVersion(); in writeEhdr()3696 eHdr->e_machine = config->emachine; in writeEhdr()3697 eHdr->e_version = EV_CURRENT; in writeEhdr()3698 eHdr->e_flags = config->eflags; in writeEhdr()3699 eHdr->e_ehsize = sizeof(typename ELFT::Ehdr); in writeEhdr()[all …]
2839 auto *eHdr = reinterpret_cast<Elf_Ehdr *>(Out::bufferStart); in writeHeader() local2840 eHdr->e_type = getELFType(); in writeHeader()2841 eHdr->e_entry = getEntryAddr(); in writeHeader()2842 eHdr->e_shoff = sectionHeaderOff; in writeHeader()2853 auto *sHdrs = reinterpret_cast<Elf_Shdr *>(Out::bufferStart + eHdr->e_shoff); in writeHeader()2858 eHdr->e_shnum = num; in writeHeader()2863 eHdr->e_shstrndx = SHN_XINDEX; in writeHeader()2865 eHdr->e_shstrndx = strTabIndex; in writeHeader()