Lines Matching defs:head
1432 struct ecoff_header *head;
1446 ecoff_img = xmalloc (program_size + sizeof (*head) + sizeof (*section));
1447 grub_memset (ecoff_img, 0, program_size + sizeof (*head) + sizeof (*section));
1448 head = (void *) ecoff_img;
1449 section = (void *) (head + 1);
1450 head->magic = grub_host_to_target16 (0x160);
1451 head->nsec = grub_host_to_target16 (1);
1452 head->time = grub_host_to_target32 (0);
1453 head->opt = grub_host_to_target16 (0x38);
1454 head->flags = grub_host_to_target16 (0x207);
1455 head->magic2 = grub_host_to_target16 (0x107);
1456 head->textsize = grub_host_to_target32 (program_size);
1457 head->entry = grub_host_to_target32 (target_addr);
1458 head->text_start = grub_host_to_target32 (target_addr);
1459 head->data_start = grub_host_to_target32 (target_addr + program_size);
1463 section->file_offset = grub_host_to_target32 (sizeof (*head) + sizeof (*section));
1467 core_size = program_size + sizeof (*head) + sizeof (*section);