Searched refs:elf_hdr (Results 1 – 1 of 1) sorted by relevance
104 elfhdr elf_hdr; // declare as static to save stack space in elf_write_file_header() local108 memset(&elf_hdr, 0, sizeof(elfhdr)); in elf_write_file_header()109 elf_hdr.e_ident[0] = ELFMAG0; in elf_write_file_header()110 elf_hdr.e_ident[1] = ELFMAG1; in elf_write_file_header()111 elf_hdr.e_ident[2] = ELFMAG2; in elf_write_file_header()112 elf_hdr.e_ident[3] = ELFMAG3; in elf_write_file_header()113 elf_hdr.e_ident[4] = ELFCLASS32; in elf_write_file_header()114 elf_hdr.e_ident[5] = ELFDATA2LSB; in elf_write_file_header()115 elf_hdr.e_ident[6] = EV_CURRENT; in elf_write_file_header()116 elf_hdr.e_ident[7] = ELFOSABI_NONE; in elf_write_file_header()[all …]