Home
last modified time | relevance | path

Searched refs:hdrbuf (Results 1 – 3 of 3) sorted by relevance

/toolchain/binutils/binutils-2.27/libiberty/
Dsimple-object-xcoff.c301 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_xcoff_match() local
318 if (!simple_object_internal_read (descriptor, offset, hdrbuf, sizeof hdrbuf, in simple_object_xcoff_match()
326 ocr->nscns = fetch_16 (hdrbuf + offsetof (struct external_filehdr, f_nscns)); in simple_object_xcoff_match()
329 ocr->symptr = fetch_64 (hdrbuf in simple_object_xcoff_match()
332 ocr->nsyms = fetch_32 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
335 + fetch_16 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
341 ocr->symptr = fetch_32 (hdrbuf in simple_object_xcoff_match()
344 ocr->nsyms = fetch_32 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
347 + fetch_16 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
579 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_xcoff_write_filehdr() local
[all …]
Dsimple-object-coff.c241 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()
[all …]
Dsimple-object-mach-o.c896 unsigned char hdrbuf[sizeof (struct mach_o_header_64)]; in simple_object_mach_o_write_header() local
904 memset (hdrbuf, 0, sizeof hdrbuf); in simple_object_mach_o_write_header()
908 hdr = &hdrbuf[0]; in simple_object_mach_o_write_header()
933 return simple_object_internal_write (descriptor, 0, hdrbuf, wrsize, in simple_object_mach_o_write_header()
951 unsigned char hdrbuf[sizeof (struct mach_o_section_64)]; in simple_object_mach_o_write_section_header() local
959 memset (hdrbuf, 0, sizeof hdrbuf); in simple_object_mach_o_write_section_header()
961 hdr = &hdrbuf[0]; in simple_object_mach_o_write_section_header()
1045 unsigned char hdrbuf[sizeof (struct mach_o_segment_command_64)]; in simple_object_mach_o_write_segment() local
1281 memset (hdrbuf, 0, sizeof hdrbuf); in simple_object_mach_o_write_segment()
1283 hdr = &hdrbuf[0]; in simple_object_mach_o_write_segment()