Lines Matching refs:hdrbuf
241 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_coff_match() local
271 if (!simple_object_internal_read (descriptor, offset, hdrbuf, sizeof hdrbuf, in simple_object_coff_match()
275 flags = fetch_16 (hdrbuf + offsetof (struct external_filehdr, f_flags)); in simple_object_coff_match()
286 ocr->nscns = fetch_16 (hdrbuf + offsetof (struct external_filehdr, f_nscns)); in simple_object_coff_match()
287 ocr->symptr = fetch_32 (hdrbuf in simple_object_coff_match()
289 ocr->nsyms = fetch_32 (hdrbuf + offsetof (struct external_filehdr, f_nsyms)); in simple_object_coff_match()
292 + fetch_16 (hdrbuf + offsetof (struct external_filehdr, in simple_object_coff_match()
511 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_coff_write_filehdr() local
516 hdr = &hdrbuf[0]; in simple_object_coff_write_filehdr()
535 return simple_object_internal_write (descriptor, 0, hdrbuf, in simple_object_coff_write_filehdr()
552 unsigned char hdrbuf[sizeof (struct external_scnhdr)]; in simple_object_coff_write_scnhdr() local
561 memset (hdrbuf, 0, sizeof hdrbuf); in simple_object_coff_write_scnhdr()
562 hdr = &hdrbuf[0]; in simple_object_coff_write_scnhdr()
591 return simple_object_internal_write (descriptor, scnhdr_offset, hdrbuf, in simple_object_coff_write_scnhdr()