Lines Matching refs:c_hdr
54 struct coff_hdr c_hdr; in write_header() local
82 memset(&c_hdr, 0, sizeof(c_hdr)); in write_header()
83 c_hdr.nr_sections = 1; in write_header()
84 c_hdr.nr_syms = 1; in write_header()
86 c_hdr.arch = IMAGE_FILE_MACHINE_I386; in write_header()
87 c_hdr.characteristics = IMAGE_FILE_32BIT_MACHINE | in write_header()
90 c_hdr.optional_hdr_sz = sizeof(o_hdr) + sizeof(e_hdr); in write_header()
91 fwrite(&c_hdr, sizeof(c_hdr), 1, f); in write_header()
110 c_hdr.arch = IMAGE_FILE_MACHINE_X86_64; in write_header()
111 c_hdr.characteristics = IMAGE_FILE_DEBUG_STRIPPED | IMAGE_FILE_EXECUTABLE_IMAGE | in write_header()
113 c_hdr.optional_hdr_sz = sizeof(o_hdr_pe32p) + sizeof(e_hdr_pe32p); in write_header()
114 fwrite(&c_hdr, sizeof(c_hdr), 1, f); in write_header()