for (i = SEG_E0; i < SEG_E9; i++)
for (i = SEG_E0; i < SEG_LAST; i++)
coff_header_append (abfd, h)     bfd * abfd;     object_headers * h;{  unsigned int i;  char buffer[1000];  char buffero[1000];  bfd_seek (abfd, 0, 0);#ifndef OBJ_COFF_OMIT_OPTIONAL_HEADER  H_SET_MAGIC_NUMBER (h, COFF_MAGIC);  H_SET_VERSION_STAMP (h, 0);  H_SET_ENTRY_POINT (h, 0);  H_SET_TEXT_START (h, segment_info[SEG_E0].frchainP->frch_root->fr_address);  H_SET_DATA_START (h, segment_info[SEG_E1].frchainP->frch_root->fr_address);  H_SET_SIZEOF_OPTIONAL_HEADER (h, bfd_coff_swap_aouthdr_out(abfd, &h->aouthdr,							     buffero));#else /* defined (OBJ_COFF_OMIT_OPTIONAL_HEADER) */  H_SET_SIZEOF_OPTIONAL_HEADER (h, 0);#endif /* defined (OBJ_COFF_OMIT_OPTIONAL_HEADER) */  i = bfd_coff_swap_filehdr_out (abfd, &h->filehdr, buffer);  bfd_write (buffer, i, 1, abfd);  bfd_write (buffero, H_GET_SIZEOF_OPTIONAL_HEADER (h), 1, abfd);  for (i = SEG_E0; i < SEG_E9; i++)    {      if (segment_info[i].scnhdr.s_name[0])	{	  unsigned int size =	  bfd_coff_swap_scnhdr_out (abfd,				    &(segment_info[i].scnhdr),				    buffer);	  if (size == 0)	    as_bad ("bfd_coff_swap_scnhdr_out failed");	  bfd_write (buffer, size, 1, abfd);	}    }}