Lines Matching defs:hdr
47 struct external_DOS_hdr hdr;
53 || (size = bfd_read (&hdr, sizeof (hdr), abfd)) + 1 < DOS_HDR_SIZE + 1)
60 if (H_GET_16 (abfd, hdr.e_magic) != IMAGE_DOS_SIGNATURE)
71 || H_GET_16 (abfd, hdr.e_cparhdr) < 4)
73 else if (bfd_seek (abfd, H_GET_32 (abfd, hdr.e_lfanew), SEEK_SET) != 0
95 abfd->start_address = H_GET_16 (abfd, hdr.e_ip);
102 section->filepos = H_GET_16 (abfd, hdr.e_cparhdr) * 16;
103 size = (H_GET_16 (abfd, hdr.e_cp) - 1) * EXE_PAGE_SIZE - section->filepos;
104 size += H_GET_16 (abfd, hdr.e_cblp);
130 static char hdr[EXE_PAGE_SIZE];
131 file_ptr outfile_size = sizeof(hdr);
148 file_ptr sec_end = (sizeof (hdr)
164 H_PUT_16 (abfd, IMAGE_DOS_SIGNATURE, &hdr[0]);
165 H_PUT_16 (abfd, EXE_PAGE_SIZE / 16, &hdr[8]);
166 H_PUT_16 (abfd, EXE_LOAD_LOW, &hdr[12]);
167 H_PUT_16 (abfd, 0x3e, &hdr[24]);
168 H_PUT_16 (abfd, 0x0001, &hdr[28]); /* XXX??? */
169 H_PUT_16 (abfd, 0x30fb, &hdr[30]); /* XXX??? */
170 H_PUT_16 (abfd, 0x726a, &hdr[32]); /* XXX??? */
173 H_PUT_16 (abfd, outfile_size & (EXE_PAGE_SIZE - 1), &hdr[2]);
176 H_PUT_16 (abfd, (outfile_size + EXE_PAGE_SIZE - 1) / EXE_PAGE_SIZE, &hdr[4]);
180 H_PUT_16 (abfd, high_vma, &hdr[16]);
183 || bfd_write (hdr, sizeof (hdr), abfd) != sizeof (hdr))