Lines Matching defs:in

12    This program is distributed in the hope that it will be useful,
28 /* Hey look, some documentation [and in a place you expect to find it]!
48 because the `i' in `pei' also refers to "image". The `pe' format can
74 in what's supposed to be general (to PE/PEI) code. However, that's
103 worked when the code was in peicode.h, but no longer work now that
104 the code is in peigen.c. PowerPC NT is said to be dead. If
113 struct internal_syment *in = (struct internal_syment *) in1;
117 in->_n._n_n._n_zeroes = 0;
118 in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset);
121 memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN);
123 in->n_value = H_GET_32 (abfd, ext->e_value);
124 in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum);
127 in->n_type = H_GET_16 (abfd, ext->e_type);
129 in->n_type = H_GET_32 (abfd, ext->e_type);
131 in->n_sclass = H_GET_8 (abfd, ext->e_sclass);
132 in->n_numaux = H_GET_8 (abfd, ext->e_numaux);
139 symbol. Unfortunately, the value field in the symbol is simply a
142 they will be handled somewhat correctly in the bfd code. */
143 if (in->n_sclass == C_SECTION)
148 in->n_value = 0x0;
151 if (in->n_scnum == 0)
155 name = _bfd_coff_internal_syment_name (abfd, in, namebuf);
166 in->n_scnum = sec->target_index;
169 if (in->n_scnum == 0)
214 in->n_scnum = unused_section_number;
216 in->n_sclass = C_STAT;
221 /* This won't work in peigen.c, but since it's for PPC PE, it's not
238 struct internal_syment *in = (struct internal_syment *) inp;
241 if (in->_n._n_name[0] == 0)
244 H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset);
247 memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN);
255 if (sizeof (in->n_value) > 4
256 /* The strange computation of the shift amount is here in order to
261 && in->n_value > ((1ULL << (sizeof (in->n_value) > 4 ? 32 : 31)) - 1)
262 && in->n_scnum == N_ABS)
266 sec = bfd_sections_find_if (abfd, abs_finder, & in->n_value);
269 in->n_value -= sec->vma;
270 in->n_scnum = sec->target_index;
277 H_PUT_32 (abfd, in->n_value, ext->e_value);
278 H_PUT_16 (abfd, in->n_scnum, ext->e_scnum);
281 H_PUT_16 (abfd, in->n_type, ext->e_type);
283 H_PUT_32 (abfd, in->n_type, ext->e_type);
285 H_PUT_8 (abfd, in->n_sclass, ext->e_sclass);
286 H_PUT_8 (abfd, in->n_numaux, ext->e_numaux);
301 union internal_auxent *in = (union internal_auxent *) in1;
303 /* PR 17521: Make sure that all fields in the aux structure
305 memset (in, 0, sizeof * in);
311 in->x_file.x_n.x_zeroes = 0;
312 in->x_file.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset);
315 memcpy (in->x_file.x_fname, ext->x_file.x_fname, FILNMLEN);
323 in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext);
324 in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext);
325 in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext);
326 in->x_scn.x_checksum = H_GET_32 (abfd, ext->x_scn.x_checksum);
327 in->x_scn.x_associated = H_GET_16 (abfd, ext->x_scn.x_associated);
328 in->x_scn.x_comdat = H_GET_8 (abfd, ext->x_scn.x_comdat);
334 in->x_sym.x_tagndx.l = H_GET_32 (abfd, ext->x_sym.x_tagndx);
335 in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx);
340 in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext);
341 in->x_sym.x_fcnary.x_fcn.x_endndx.l = GET_FCN_ENDNDX (abfd, ext);
345 in->x_sym.x_fcnary.x_ary.x_dimen[0] =
347 in->x_sym.x_fcnary.x_ary.x_dimen[1] =
349 in->x_sym.x_fcnary.x_ary.x_dimen[2] =
351 in->x_sym.x_fcnary.x_ary.x_dimen[3] =
357 in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize);
361 in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext);
362 in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext);
375 union internal_auxent *in = (union internal_auxent *) inp;
383 if (in->x_file.x_fname[0] == 0)
386 H_PUT_32 (abfd, in->x_file.x_n.x_offset, ext->x_file.x_n.x_offset);
389 memcpy (ext->x_file.x_fname, in->x_file.x_fname, FILNMLEN);
398 PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext);
399 PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext);
400 PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext);
401 H_PUT_32 (abfd, in->x_scn.x_checksum, ext->x_scn.x_checksum);
402 H_PUT_16 (abfd, in->x_scn.x_associated, ext->x_scn.x_associated);
403 H_PUT_8 (abfd, in->x_scn.x_comdat, ext->x_scn.x_comdat);
409 H_PUT_32 (abfd, in->x_sym.x_tagndx.l, ext->x_sym.x_tagndx);
410 H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx);
415 PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext);
416 PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.l, ext);
420 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0],
422 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1],
424 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2],
426 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3],
431 H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize);
434 PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext);
435 PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext);
445 struct internal_lineno *in = (struct internal_lineno *) in1;
447 in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx);
448 in->l_lnno = GET_LINENO_LNNO (abfd, ext);
454 struct internal_lineno *in = (struct internal_lineno *) inp;
456 H_PUT_32 (abfd, in->l_addr.l_symndx, ext->l_addr.l_symndx);
458 PUT_LINENO_LNNO (abfd, in->l_lnno, ext);
592 In the case of reading a file in, we can pick them up from the
630 _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out)
632 struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in;
684 .idata$5. It will be done in bfd_coff_final_link where all the
703 in this slot by MSVC; it doesn't seem to cause problems (so far),
729 in the virt_size field). Files have been seen (from MSVC
819 _bfd_XXi_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
822 struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
893 /* Put in extra dos header stuff. This data remains essentially
926 /* Also put in the NT signature. */
933 _bfd_XX_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
935 struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
950 _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
952 struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in;
967 NT_FILE_ALIGNMENT, but zero if it has no content (as in .bss,
995 /* s_paddr in PE is really the virtual size. */
1016 /* FIXME: Alignment is also encoded in this field, at least on PPC and
1048 and then allow the must_have field to add it back in if necessary.
1074 number_of_linenos is used for the line number count in
1119 struct internal_IMAGE_DEBUG_DIRECTORY *in = (struct internal_IMAGE_DEBUG_DIRECTORY *) in1;
1121 in->Characteristics = H_GET_32(abfd, ext->Characteristics);
1122 in->TimeDateStamp = H_GET_32(abfd, ext->TimeDateStamp);
1123 in->MajorVersion = H_GET_16(abfd, ext->MajorVersion);
1124 in->MinorVersion = H_GET_16(abfd, ext->MinorVersion);
1125 in->Type = H_GET_32(abfd, ext->Type);
1126 in->SizeOfData = H_GET_32(abfd, ext->SizeOfData);
1127 in->AddressOfRawData = H_GET_32(abfd, ext->AddressOfRawData);
1128 in->PointerToRawData = H_GET_32(abfd, ext->PointerToRawData);
1135 struct internal_IMAGE_DEBUG_DIRECTORY *in = (struct internal_IMAGE_DEBUG_DIRECTORY *) inp;
1137 H_PUT_32(abfd, in->Characteristics, ext->Characteristics);
1138 H_PUT_32(abfd, in->TimeDateStamp, ext->TimeDateStamp);
1139 H_PUT_16(abfd, in->MajorVersion, ext->MajorVersion);
1140 H_PUT_16(abfd, in->MinorVersion, ext->MinorVersion);
1141 H_PUT_32(abfd, in->Type, ext->Type);
1142 H_PUT_32(abfd, in->SizeOfData, ext->SizeOfData);
1143 H_PUT_32(abfd, in->AddressOfRawData, ext->AddressOfRawData);
1144 H_PUT_32(abfd, in->PointerToRawData, ext->PointerToRawData);
1173 /* A GUID consists of 4,2,2 byte values in little-endian order, followed
1175 as 16 bytes in big-endian order. */
1216 /* Byte swap the GUID from 16 bytes in big-endian order to 4,2,2 byte values
1217 in little-endian order, followed by 8 single bytes. */
1254 /* The code for the PPC really falls in the "architecture dependent"
1316 _("\nThere is an import table in %s, but that section has no contents\n"),
1323 fprintf (file, _("\nThere is an import table in %s at 0x%lx\n"),
1335 get from the bfd, and the descriptor is supposed to be in the
1476 section. If it is not then we will have to load its data in. */
1608 unsigned long num_functions;/* Number in the export address table. */
1609 unsigned long num_names; /* Number in the name pointer table. */
1652 _("\nThere is an export table in %s, but that section has no contents\n"),
1662 _("\nThere is an export table in %s, but it does not fit into that section\n"),
1673 _("\nThere is an export table in %s, but it is too small (%d)\n"),
1679 fprintf (file, _("\nThere is an export table in %s at 0x%lx\n"),
1735 _("Number in:\n"));
1763 a list of pointers that either locate a function in this dll, or
1793 /* This rva is to a name (forwarding function) in our section. */
1806 /* Should locate a function descriptor in the reldata section. */
1817 /* Dump them in parallel for clarity. */
2302 Some fields are filled in as the section is parsed. */
2409 in the resource table. We need some way to detect this. */
2465 /* FIXME: For now we end the printing here. If in the
2510 the tables in a human readable format. */
2585 fprintf (file, _("\nWARNING: Extra data in .rsrc section - it will be ignored by Windows:\n"));
2652 _("\nThere is a debug directory in %s, but that section has no contents\n"),
2664 fprintf (file, _("\nThere is a debug directory in %s at 0x%lx\n\n"),
2671 fprintf (file, _("The debug data size field in the data directory is too big for the section"));
2709 to safely read in a codeview record. */
2714 /* The debug entry doesn't have to have to be in a section,
2715 in which case AddressOfRawData is 0, so always use PointerToRawData. */
2946 /* pe_opthdr is copied in copy_object. */
2968 /* The file offsets contained in the debug directory need rewriting. */
2987 _bfd_error_handler (_("%B: Data Directory size (%lx) exceeds space left in section (%lx)"),
3007 continue; /* Not in a section! */
3017 _bfd_error_handler (_("Failed to update file offsets in debug directory"));
3569 /* Return the length (number of units) of the first character in S,
3570 putting its 'ucs4_t' representation in *PUC. */
3633 function however goes by different names in the two environments... */
3782 their ID is stored in the NAME entry. The bottom four bits are used as
3823 /* FIXME: Should we continue the loop in order to report other duplicates ? */
3827 theatrics here - we are only interested in (case sensitive) equality. */
3850 We need to allocate an extra COPY_NEEDED bytes in A and then bring
3851 in B's strings. */
3896 /* Sort the entries in given part of the directory.
3940 even if they differ in language. Zero-language manifests
4176 does *not* sort the input .rsrc sections, so that the order in the
4177 linkinfo list matches the order in the output .rsrc section.
4272 We must ensure that the merged entries are in ascending order.
4348 /* There are a few fields that need to be filled in now while we
4352 they are in the symbol table, so get them from there. */
4374 (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"),
4394 (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"),
4415 (_("%B: unable to fill in DataDictionary[12] because .idata$5 is missing"),
4435 (_("%B: unable to fill in DataDictionary[PE_IMPORT_ADDRESS_TABLE (12)] because .idata$6 is missing"),
4477 (_("%B: unable to fill in DataDictionary[PE_IMPORT_ADDRESS_TABLE(12)]"
4502 (_("%B: unable to fill in DataDictionary[9] because __tls_used is missing"),
4552 trivial program or are in DEEP trouble; we have to assume trivial