Lines Matching +defs:mh +defs:data
44 maintain the data structures to manage this zone. Dumping writes
45 its contents to data segments of the executable file. When emacs
134 /* Size of buffer used to copy data from the input file to the output
175 static struct mach_header mh;
192 /* file offset of input file's data segment */
738 if (!unexec_read (&mh, sizeof (struct mach_header)))
741 if (mh.magic != target_MH_MAGIC)
744 if (mh.filetype != MH_EXECUTE)
749 printf ("Magic = 0x%08x\n", mh.magic);
750 printf ("CPUType = %d\n", mh.cputype);
751 printf ("CPUSubType = %d\n", mh.cpusubtype);
752 printf ("FileType = 0x%x\n", mh.filetype);
753 printf ("NCmds = %d\n", mh.ncmds);
754 printf ("SizeOfCmds = %d\n", mh.sizeofcmds);
755 printf ("Flags = 0x%08x\n", mh.flags);
758 nlc = mh.ncmds;
847 sections __bss and __common contain no data in the input file
861 /* The new filesize of the segment is set to its vmsize because data
863 this may leave unused locations at the end of the segment data
873 and segment data block, respectively. */
997 mh.ncmds++;
1055 struct linkedit_data_command *data = (struct linkedit_data_command *) lc;
1057 if (data->dataoff)
1058 data->dataoff += delta;
1124 printf ("Fixed up %d/%d %s relocation entries in data segment.\n",
1215 /* save data segment file offset and segment_command for
1270 mh.sizeofcmds = curr_header_offset - sizeof (struct mach_header);
1271 if (!unexec_write (0, &mh, sizeof (struct mach_header)))