Lines Matching refs:elf_header

668     Elf_Ehdr elf_header = MakeElfHeader(isa_, features_);  in End()  local
669 elf_header.e_shoff = section_headers_offset; in End()
670 elf_header.e_shnum = shdrs.size(); in End()
671 elf_header.e_shstrndx = shstrtab_.GetSectionIndex(); in End()
678 elf_header.e_phoff = sizeof(Elf_Ehdr); in End()
679 elf_header.e_phnum = phdrs.size(); in End()
683 stream_.WriteFully(&elf_header, sizeof(elf_header)); in End()
856 Elf_Ehdr elf_header = Elf_Ehdr(); in MakeElfHeader() local
861 elf_header.e_machine = EM_ARM; in MakeElfHeader()
862 elf_header.e_flags = EF_ARM_EABI_VER5; in MakeElfHeader()
866 elf_header.e_machine = EM_AARCH64; in MakeElfHeader()
867 elf_header.e_flags = 0; in MakeElfHeader()
871 elf_header.e_machine = EM_386; in MakeElfHeader()
872 elf_header.e_flags = 0; in MakeElfHeader()
876 elf_header.e_machine = EM_X86_64; in MakeElfHeader()
877 elf_header.e_flags = 0; in MakeElfHeader()
881 elf_header.e_machine = EM_MIPS; in MakeElfHeader()
882 elf_header.e_flags = (EF_MIPS_NOREORDER | in MakeElfHeader()
892 elf_header.e_machine = EM_MIPS; in MakeElfHeader()
893 elf_header.e_flags = (EF_MIPS_NOREORDER | in MakeElfHeader()
908 elf_header.e_ident[EI_MAG0] = ELFMAG0; in MakeElfHeader()
909 elf_header.e_ident[EI_MAG1] = ELFMAG1; in MakeElfHeader()
910 elf_header.e_ident[EI_MAG2] = ELFMAG2; in MakeElfHeader()
911 elf_header.e_ident[EI_MAG3] = ELFMAG3; in MakeElfHeader()
912 elf_header.e_ident[EI_CLASS] = (sizeof(Elf_Addr) == sizeof(Elf32_Addr)) in MakeElfHeader()
914 elf_header.e_ident[EI_DATA] = ELFDATA2LSB; in MakeElfHeader()
915 elf_header.e_ident[EI_VERSION] = EV_CURRENT; in MakeElfHeader()
916 elf_header.e_ident[EI_OSABI] = ELFOSABI_LINUX; in MakeElfHeader()
917 elf_header.e_ident[EI_ABIVERSION] = 0; in MakeElfHeader()
918 elf_header.e_type = ET_DYN; in MakeElfHeader()
919 elf_header.e_version = 1; in MakeElfHeader()
920 elf_header.e_entry = 0; in MakeElfHeader()
921 elf_header.e_ehsize = sizeof(Elf_Ehdr); in MakeElfHeader()
922 elf_header.e_phentsize = sizeof(Elf_Phdr); in MakeElfHeader()
923 elf_header.e_shentsize = sizeof(Elf_Shdr); in MakeElfHeader()
924 return elf_header; in MakeElfHeader()