Home | History | Annotate | Download | only in compiler

Lines Matching defs:elf_header

593     Elf_Ehdr elf_header = MakeElfHeader(isa_, features_);
594 elf_header.e_shoff = section_headers_offset;
595 elf_header.e_shnum = shdrs.size();
596 elf_header.e_shstrndx = shstrtab_.GetSectionIndex();
603 elf_header.e_phoff = sizeof(Elf_Ehdr);
604 elf_header.e_phnum = phdrs.size();
608 stream_.WriteFully(&elf_header, sizeof(elf_header));
753 Elf_Ehdr elf_header = Elf_Ehdr();
758 elf_header.e_machine = EM_ARM;
759 elf_header.e_flags = EF_ARM_EABI_VER5;
763 elf_header.e_machine = EM_AARCH64;
764 elf_header.e_flags = 0;
768 elf_header.e_machine = EM_386;
769 elf_header.e_flags = 0;
773 elf_header.e_machine = EM_X86_64;
774 elf_header.e_flags = 0;
778 elf_header.e_machine = EM_MIPS;
779 elf_header.e_flags = (EF_MIPS_NOREORDER |
789 elf_header.e_machine = EM_MIPS;
790 elf_header.e_flags = (EF_MIPS_NOREORDER |
805 elf_header.e_ident[EI_MAG0] = ELFMAG0;
806 elf_header.e_ident[EI_MAG1] = ELFMAG1;
807 elf_header.e_ident[EI_MAG2] = ELFMAG2;
808 elf_header.e_ident[EI_MAG3] = ELFMAG3;
809 elf_header.e_ident[EI_CLASS] = (sizeof(Elf_Addr) == sizeof(Elf32_Addr))
811 elf_header.e_ident[EI_DATA] = ELFDATA2LSB;
812 elf_header.e_ident[EI_VERSION] = EV_CURRENT;
813 elf_header.e_ident[EI_OSABI] = ELFOSABI_LINUX;
814 elf_header.e_ident[EI_ABIVERSION] = 0;
815 elf_header.e_type = ET_DYN;
816 elf_header.e_version = 1;
817 elf_header.e_entry = 0;
818 elf_header.e_ehsize = sizeof(Elf_Ehdr);
819 elf_header.e_phentsize = sizeof(Elf_Phdr);
820 elf_header.e_shentsize = sizeof(Elf_Shdr);
821 elf_header.e_phoff = sizeof(Elf_Ehdr);
822 return elf_header;