• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cctools-845/efitools/

Lines Matching refs:aouthdr

41 #include "coff/aouthdr.h"
66 static struct aouthdr aouthdr;
74 * The value of the -subsystem argument to then set in the PECOFF aouthdr.
118 * layout the added PECOFF sections and set into the PECOFF aouthdr.
1227 header_size += sizeof(struct aouthdr);
1357 filehdr.f_opthdr = sizeof(struct aouthdr);
1367 /* next is the aouthdr */
1369 aouthdr.magic = PE32MAGIC;
1370 aouthdr.vstamp = VSTAMP;
1376 aouthdr.tsize = 0;
1377 aouthdr.dsize = 0;
1378 aouthdr.bsize = 0;
1379 aouthdr.SizeOfImage = rnd(header_size, section_alignment);
1381 aouthdr.SizeOfImage += rnd(scnhdrs[i].s_vsize, section_alignment);
1384 aouthdr.entry = entry;
1386 aouthdr.text_start = 0;
1387 aouthdr.data_start = 0;
1391 if(aouthdr.text_start == 0)
1392 aouthdr.text_start = scnhdrs[i].s_vaddr;
1395 if(aouthdr.data_start == 0)
1396 aouthdr.data_start = scnhdrs[i].s_vaddr;
1401 aouthdr.ImageBase = 0;
1402 aouthdr.SectionAlignment = section_alignment;
1403 aouthdr.FileAlignment = file_alignment;
1404 aouthdr.MajorOperatingSystemVersion = 0;
1405 aouthdr.MinorOperatingSystemVersion = 0;
1406 aouthdr.MajorImageVersion = 0;
1407 aouthdr.MinorImageVersion = 0;
1408 aouthdr.MajorSubsystemVersion = 0;
1409 aouthdr.MinorSubsystemVersion = 0;
1410 aouthdr.Win32VersionValue = 0;
1413 aouthdr.SizeOfHeaders = header_size;
1414 aouthdr.CheckSum = 0;
1415 aouthdr.Subsystem = Subsystem;
1416 aouthdr.DllCharacteristics = 0;
1417 aouthdr.SizeOfStackReserve = 0;
1418 aouthdr.SizeOfStackCommit = 0;
1419 aouthdr.SizeOfHeapReserve = 0;
1420 aouthdr.SizeOfHeapCommit = 0;
1421 aouthdr.LoaderFlags = 0;
1422 aouthdr.NumberOfRvaAndSizes = 16;
1425 aouthdr.DataDirectory[5][0] = reloc_scnhdr->s_vaddr;
1426 aouthdr.DataDirectory[5][1] = reloc_scnhdr->s_vsize;
1430 aouthdr.DataDirectory[6][0] = debug_scnhdr->s_vaddr;
1431 aouthdr.DataDirectory[6][1] = debug_scnhdr->s_vsize;
1566 memcpy(p, &aouthdr, sizeof(struct aouthdr));
1568 swap_aouthdr((struct aouthdr *)p, target_byte_sex);
1569 p += sizeof(struct aouthdr);
1619 aouthdr.CheckSum = checksum(buf) + output_size;
1620 memcpy(p_aouthdr, &aouthdr, sizeof(struct aouthdr));
1622 swap_aouthdr((struct aouthdr *)p_aouthdr, target_byte_sex);