Home | History | Annotate | Download | only in bfd

Lines Matching refs:thdr

179 	  Nlm_External_Version_Header thdr;
181 amt = sizeof (thdr);
182 if (bfd_bread ((void *) &thdr, amt, abfd) != amt)
184 memcpy (nlm_version_header (abfd)->stamp, thdr.stamp,
185 sizeof (thdr.stamp));
187 get_word (abfd, (bfd_byte *) thdr.majorVersion);
189 get_word (abfd, (bfd_byte *) thdr.minorVersion);
191 get_word (abfd, (bfd_byte *) thdr.revision);
193 get_word (abfd, (bfd_byte *) thdr.year);
195 get_word (abfd, (bfd_byte *) thdr.month);
197 get_word (abfd, (bfd_byte *) thdr.day);
201 Nlm_External_Extended_Header thdr;
203 amt = sizeof (thdr);
204 if (bfd_bread ((void *) &thdr, amt, abfd) != amt)
206 memcpy (nlm_extended_header (abfd)->stamp, thdr.stamp,
207 sizeof (thdr.stamp));
209 get_word (abfd, (bfd_byte *) thdr.languageID);
211 get_word (abfd, (bfd_byte *) thdr.messageFileOffset);
213 get_word (abfd, (bfd_byte *) thdr.messageFileLength);
215 get_word (abfd, (bfd_byte *) thdr.messageCount);
217 get_word (abfd, (bfd_byte *) thdr.helpFileOffset);
219 get_word (abfd, (bfd_byte *) thdr.helpFileLength);
221 get_word (abfd, (bfd_byte *) thdr.RPCDataOffset);
223 get_word (abfd, (bfd_byte *) thdr.RPCDataLength);
225 get_word (abfd, (bfd_byte *) thdr.sharedCodeOffset);
227 get_word (abfd, (bfd_byte *) thdr.sharedCodeLength);
229 get_word (abfd, (bfd_byte *) thdr.sharedDataOffset);
231 get_word (abfd, (bfd_byte *) thdr.sharedDataLength);
233 get_word (abfd, (bfd_byte *) thdr.sharedRelocationFixupOffset);
235 get_word (abfd, (bfd_byte *) thdr.sharedRelocationFixupCount);
237 get_word (abfd, (bfd_byte *) thdr.sharedExternalReferenceOffset);
239 get_word (abfd, (bfd_byte *) thdr.sharedExternalReferenceCount);
241 get_word (abfd, (bfd_byte *) thdr.sharedPublicsOffset);
243 get_word (abfd, (bfd_byte *) thdr.sharedPublicsCount);
245 get_word (abfd, (bfd_byte *) thdr.sharedDebugRecordOffset);
247 get_word (abfd, (bfd_byte *) thdr.sharedDebugRecordCount);
249 get_word (abfd, (bfd_byte *) thdr.sharedInitializationOffset);
251 get_word (abfd, (bfd_byte *) thdr.SharedExitProcedureOffset);
253 get_word (abfd, (bfd_byte *) thdr.productID);
255 get_word (abfd, (bfd_byte *) thdr.reserved0);
257 get_word (abfd, (bfd_byte *) thdr.reserved1);
259 get_word (abfd, (bfd_byte *) thdr.reserved2);
261 get_word (abfd, (bfd_byte *) thdr.reserved3);
263 get_word (abfd, (bfd_byte *) thdr.reserved4);
265 get_word (abfd, (bfd_byte *) thdr.reserved5);
285 Nlm_External_Custom_Header thdr;
293 amt = sizeof (thdr.stamp);
294 if (bfd_bread ((void *) thdr.stamp, amt, abfd) != amt)
297 amt = sizeof (thdr.length);
298 if (bfd_bread ((void *) thdr.length, amt, abfd) != amt)
300 hdrLength = get_word (abfd, (bfd_byte *) thdr.length);
306 amt = sizeof (thdr.dataOffset);
307 if (bfd_bread ((void *) thdr.dataOffset, amt, abfd) != amt)
309 dataOffset = get_word (abfd, (bfd_byte *) thdr.dataOffset);
315 amt = sizeof (thdr.dataLength);
316 if (bfd_bread ((void *) thdr.dataLength, amt, abfd) != amt)
318 dataLength = get_word (abfd, (bfd_byte *) thdr.dataLength);
419 memcpy (nlm_custom_header (abfd)->stamp, thdr.stamp,
420 sizeof (thdr.stamp));
646 Nlm_External_Version_Header thdr;
648 LITMEMCPY (thdr.stamp, "VeRsIoN#");
650 (bfd_byte *) thdr.majorVersion);
652 (bfd_byte *) thdr.minorVersion);
654 (bfd_byte *) thdr.revision);
656 (bfd_byte *) thdr.year);
658 (bfd_byte *) thdr.month);
660 (bfd_byte *) thdr.day);
661 if (bfd_bwrite ((void *) &thdr, (bfd_size_type) sizeof (thdr), abfd)
662 != sizeof (thdr))
673 Nlm_External_Copyright_Header thdr;
675 LITMEMCPY (thdr.stamp, "CoPyRiGhT=");
676 amt = sizeof (thdr.stamp);
677 if (bfd_bwrite ((void *) thdr.stamp, amt, abfd) != amt)
679 thdr.copyrightMessageLength[0] =
682 if (bfd_bwrite ((void *) thdr.copyrightMessageLength, amt, abfd) != amt)
695 Nlm_External_Extended_Header thdr;
697 LITMEMCPY (thdr.stamp, "MeSsAgEs");
700 (bfd_byte *) thdr.languageID);
703 (bfd_byte *) thdr.messageFileOffset);
706 (bfd_byte *) thdr.messageFileLength);
709 (bfd_byte *) thdr.messageCount);
712 (bfd_byte *) thdr.helpFileOffset);
715 (bfd_byte *) thdr.helpFileLength);
718 (bfd_byte *) thdr.RPCDataOffset);
721 (bfd_byte *) thdr.RPCDataLength);
724 (bfd_byte *) thdr.sharedCodeOffset);
727 (bfd_byte *) thdr.sharedCodeLength);
730 (bfd_byte *) thdr.sharedDataOffset);
733 (bfd_byte *) thdr.sharedDataLength);
736 (bfd_byte *) thdr.sharedRelocationFixupOffset);
739 (bfd_byte *) thdr.sharedRelocationFixupCount);
742 (bfd_byte *) thdr.sharedExternalReferenceOffset);
745 (bfd_byte *) thdr.sharedExternalReferenceCount);
748 (bfd_byte *) thdr.sharedPublicsOffset);
751 (bfd_byte *) thdr.sharedPublicsCount);
754 (bfd_byte *) thdr.sharedDebugRecordOffset);
757 (bfd_byte *) thdr.sharedDebugRecordCount);
760 (bfd_byte *) thdr.sharedInitializationOffset);
763 (bfd_byte *) thdr.SharedExitProcedureOffset);
766 (bfd_byte *) thdr.productID);
769 (bfd_byte *) thdr.reserved0);
772 (bfd_byte *) thdr.reserved1);
775 (bfd_byte *) thdr.reserved2);
778 (bfd_byte *) thdr.reserved3);
781 (bfd_byte *) thdr.reserved4);
784 (bfd_byte *) thdr.reserved5);
785 if (bfd_bwrite ((void *) &thdr, (bfd_size_type) sizeof (thdr), abfd)
786 != sizeof (thdr))
794 Nlm_External_Custom_Header thdr;
800 LITMEMCPY (thdr.stamp, "CuStHeAd");
803 put_word (abfd, hdrLength, thdr.length);
805 thdr.dataOffset);
807 thdr.dataLength);
811 amt = sizeof (thdr) - sizeof (thdr.dataStamp);
812 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt)
817 memcpy (thdr.dataStamp, nlm_custom_header (abfd)->dataStamp,
818 sizeof (thdr.dataStamp));
819 amt = sizeof (thdr);
820 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt)
832 Nlm_External_Custom_Header thdr;
834 LITMEMCPY (thdr.stamp, "CuStHeAd");
836 (bfd_byte *) thdr.length);
838 (bfd_byte *) thdr.dataOffset);
840 (bfd_byte *) thdr.dataLength);
841 LITMEMCPY (thdr.dataStamp, "CyGnUsEx");
842 amt = sizeof (thdr);
843 if (bfd_bwrite ((void *) &thdr, amt, abfd) != amt)