Home | History | Annotate | Download | only in bfd

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
73 in what's supposed to be general (to PE/PEI) code. However, that's
102 worked when the code was in peicode.h, but no longer work now that
103 the code is in peigen.c. PowerPC NT is said to be dead. If
112 struct internal_syment *in = (struct internal_syment *) in1;
116 in->_n._n_n._n_zeroes = 0;
117 in->_n._n_n._n_offset = H_GET_32 (abfd, ext->e.e.e_offset);
120 memcpy (in->_n._n_name, ext->e.e_name, SYMNMLEN);
122 in->n_value = H_GET_32 (abfd, ext->e_value);
123 in->n_scnum = H_GET_16 (abfd, ext->e_scnum);
126 in->n_type = H_GET_16 (abfd, ext->e_type);
128 in->n_type = H_GET_32 (abfd, ext->e_type);
130 in->n_sclass = H_GET_8 (abfd, ext->e_sclass);
131 in->n_numaux = H_GET_8 (abfd, ext->e_numaux);
138 symbol. Unfortunately, the value field in the symbol is simply a
141 they will be handled somewhat correctly in the bfd code. */
142 if (in->n_sclass == C_SECTION)
147 in->n_value = 0x0;
150 if (in->n_scnum == 0)
154 name = _bfd_coff_internal_syment_name (abfd, in, namebuf);
165 in->n_scnum = sec->target_index;
168 if (in->n_scnum == 0)
213 in->n_scnum = unused_section_number;
215 in->n_sclass = C_STAT;
220 /* This won't work in peigen.c, but since it's for PPC PE, it's not
237 struct internal_syment *in = (struct internal_syment *) inp;
240 if (in->_n._n_name[0] == 0)
243 H_PUT_32 (abfd, in->_n._n_n._n_offset, ext->e.e.e_offset);
246 memcpy (ext->e.e_name, in->_n._n_name, SYMNMLEN);
254 if (sizeof (in->n_value) > 4
255 /* The strange computation of the shift amount is here in order to
260 && in->n_value > ((1ULL << (sizeof (in->n_value) > 4 ? 32 : 31)) - 1)
261 && in->n_scnum == -1)
265 sec = bfd_sections_find_if (abfd, abs_finder, & in->n_value);
268 in->n_value -= sec->vma;
269 in->n_scnum = sec->target_index;
276 H_PUT_32 (abfd, in->n_value, ext->e_value);
277 H_PUT_16 (abfd, in->n_scnum, ext->e_scnum);
280 H_PUT_16 (abfd, in->n_type, ext->e_type);
282 H_PUT_32 (abfd, in->n_type, ext->e_type);
284 H_PUT_8 (abfd, in->n_sclass, ext->e_sclass);
285 H_PUT_8 (abfd, in->n_numaux, ext->e_numaux);
300 union internal_auxent *in = (union internal_auxent *) in1;
302 /* PR 17521: Make sure that all fields in the aux structure
304 memset (in, 0, sizeof * in);
310 in->x_file.x_n.x_zeroes = 0;
311 in->x_file.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset);
314 memcpy (in->x_file.x_fname, ext->x_file.x_fname, FILNMLEN);
322 in->x_scn.x_scnlen = GET_SCN_SCNLEN (abfd, ext);
323 in->x_scn.x_nreloc = GET_SCN_NRELOC (abfd, ext);
324 in->x_scn.x_nlinno = GET_SCN_NLINNO (abfd, ext);
325 in->x_scn.x_checksum = H_GET_32 (abfd, ext->x_scn.x_checksum);
326 in->x_scn.x_associated = H_GET_16 (abfd, ext->x_scn.x_associated);
327 in->x_scn.x_comdat = H_GET_8 (abfd, ext->x_scn.x_comdat);
333 in->x_sym.x_tagndx.l = H_GET_32 (abfd, ext->x_sym.x_tagndx);
334 in->x_sym.x_tvndx = H_GET_16 (abfd, ext->x_sym.x_tvndx);
339 in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR (abfd, ext);
340 in->x_sym.x_fcnary.x_fcn.x_endndx.l = GET_FCN_ENDNDX (abfd, ext);
344 in->x_sym.x_fcnary.x_ary.x_dimen[0] =
346 in->x_sym.x_fcnary.x_ary.x_dimen[1] =
348 in->x_sym.x_fcnary.x_ary.x_dimen[2] =
350 in->x_sym.x_fcnary.x_ary.x_dimen[3] =
356 in->x_sym.x_misc.x_fsize = H_GET_32 (abfd, ext->x_sym.x_misc.x_fsize);
360 in->x_sym.x_misc.x_lnsz.x_lnno = GET_LNSZ_LNNO (abfd, ext);
361 in->x_sym.x_misc.x_lnsz.x_size = GET_LNSZ_SIZE (abfd, ext);
374 union internal_auxent *in = (union internal_auxent *) inp;
382 if (in->x_file.x_fname[0] == 0)
385 H_PUT_32 (abfd, in->x_file.x_n.x_offset, ext->x_file.x_n.x_offset);
388 memcpy (ext->x_file.x_fname, in->x_file.x_fname, FILNMLEN);
397 PUT_SCN_SCNLEN (abfd, in->x_scn.x_scnlen, ext);
398 PUT_SCN_NRELOC (abfd, in->x_scn.x_nreloc, ext);
399 PUT_SCN_NLINNO (abfd, in->x_scn.x_nlinno, ext);
400 H_PUT_32 (abfd, in->x_scn.x_checksum, ext->x_scn.x_checksum);
401 H_PUT_16 (abfd, in->x_scn.x_associated, ext->x_scn.x_associated);
402 H_PUT_8 (abfd, in->x_scn.x_comdat, ext->x_scn.x_comdat);
408 H_PUT_32 (abfd, in->x_sym.x_tagndx.l, ext->x_sym.x_tagndx);
409 H_PUT_16 (abfd, in->x_sym.x_tvndx, ext->x_sym.x_tvndx);
414 PUT_FCN_LNNOPTR (abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext);
415 PUT_FCN_ENDNDX (abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.l, ext);
419 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[0],
421 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[1],
423 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[2],
425 H_PUT_16 (abfd, in->x_sym.x_fcnary.x_ary.x_dimen[3],
430 H_PUT_32 (abfd, in->x_sym.x_misc.x_fsize, ext->x_sym.x_misc.x_fsize);
433 PUT_LNSZ_LNNO (abfd, in->x_sym.x_misc.x_lnsz.x_lnno, ext);
434 PUT_LNSZ_SIZE (abfd, in->x_sym.x_misc.x_lnsz.x_size, ext);
444 struct internal_lineno *in = (struct internal_lineno *) in1;
446 in->l_addr.l_symndx = H_GET_32 (abfd, ext->l_addr.l_symndx);
447 in->l_lnno = GET_LINENO_LNNO (abfd, ext);
453 struct internal_lineno *in = (struct internal_lineno *) inp;
455 H_PUT_32 (abfd, in->l_addr.l_symndx, ext->l_addr.l_symndx);
457 PUT_LINENO_LNNO (abfd, in->l_lnno, ext);
588 In the case of reading a file in, we can pick them up from the
626 _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out)
628 struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *) in;
679 /* In theory we do not need to call add_data_entry for .idata$2 or
680 .idata$5. It will be done in bfd_coff_final_link where all the
699 in this slot by MSVC; it doesn't seem to cause problems (so far),
725 in the virt_size field). Files have been seen (from MSVC
815 _bfd_XXi_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
818 struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
887 /* Put in extra dos header stuff. This data remains essentially
920 /* Also put in the NT signature. */
927 _bfd_XX_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
929 struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
944 _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
946 struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in;
961 NT_FILE_ALIGNMENT, but zero if it has no content (as in .bss,
989 /* s_paddr in PE is really the virtual size. */
1001 have the IMAGE_SCN_MEM_READ (0x40000000) flag set. In addition, the
1010 /* FIXME: Alignment is also encoded in this field, at least on PPC and
1042 and then allow the must_have field to add it back in if necessary.
1068 number_of_linenos is used for the line number count in
1112 struct internal_IMAGE_DEBUG_DIRECTORY *in = (struct internal_IMAGE_DEBUG_DIRECTORY *) in1;
1114 in->Characteristics = H_GET_32(abfd, ext->Characteristics);
1115 in->TimeDateStamp = H_GET_32(abfd, ext->TimeDateStamp);
1116 in->MajorVersion = H_GET_16(abfd, ext->MajorVersion);
1117 in->MinorVersion = H_GET_16(abfd, ext->MinorVersion);
1118 in->Type = H_GET_32(abfd, ext->Type);
1119 in->SizeOfData = H_GET_32(abfd, ext->SizeOfData);
1120 in->AddressOfRawData = H_GET_32(abfd, ext->AddressOfRawData);
1121 in->PointerToRawData = H_GET_32(abfd, ext->PointerToRawData);
1128 struct internal_IMAGE_DEBUG_DIRECTORY *in = (struct internal_IMAGE_DEBUG_DIRECTORY *) inp;
1130 H_PUT_32(abfd, in->Characteristics, ext->Characteristics);
1131 H_PUT_32(abfd, in->TimeDateStamp, ext->TimeDateStamp);
1132 H_PUT_16(abfd, in->MajorVersion, ext->MajorVersion);
1133 H_PUT_16(abfd, in->MinorVersion, ext->MinorVersion);
1134 H_PUT_32(abfd, in->Type, ext->Type);
1135 H_PUT_32(abfd, in->SizeOfData, ext->SizeOfData);
1136 H_PUT_32(abfd, in->AddressOfRawData, ext->AddressOfRawData);
1137 H_PUT_32(abfd, in->PointerToRawData, ext->PointerToRawData);
1178 /* A GUID consists of 4,2,2 byte values in little-endian order, followed
1180 as 16 bytes in big-endian order. */
1221 /* Byte swap the GUID from 16 bytes in big-endian order to 4,2,2 byte values
1222 in little-endian order, followed by 8 single bytes. */
1258 /* The code for the PPC really falls in the "architecture dependent"
1320 _("\nThere is an import table in %s, but that section has no contents\n"),
1326 fprintf (file, _("\nThere is an import table in %s at 0x%lx\n"),
1338 get from the bfd, and the descriptor is supposed to be in the
1478 section. If it is not then we will have to load its data in. */
1610 unsigned long num_functions;/* Number in the export address table. */
1611 unsigned long num_names; /* Number in the name pointer table. */
1654 _("\nThere is an export table in %s, but that section has no contents\n"),
1664 _("\nThere is an export table in %s, but it does not fit into that section\n"),
1674 _("\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"),
1734 _("Number in:\n"));
1762 a list of pointers that either locate a function in this dll, or
1790 /* This rva is to a name (forwarding function) in our section. */
1803 /* Should locate a function descriptor in the reldata section. */
1814 /* Dump them in parallel for clarity. */
2277 Some fields are filled in as the section is parsed. */
2382 in the resource table. We need some way to detect this. */
2434 /* FIXME: For now we end the printing here. If in the
2478 the tables in a human readable format. */
2553 fprintf (file, _("\nWARNING: Extra data in .rsrc section - it will be ignored by Windows:\n"));
2620 _("\nThere is a debug directory in %s, but that section has no contents\n"),
2632 fprintf (file, _("\nThere is a debug directory in %s at 0x%lx\n\n"),
2639 fprintf (file, _("The debug data size field in the data directory is too big for the section"));
2678 /* The debug entry doesn't have to have to be in a section,
2679 in which case AddressOfRawData is 0, so always use PointerToRawData. */
2909 /* pe_opthdr is copied in copy_object. */
2931 /* The file offsets contained in the debug directory need rewriting. */
2959 continue; /* Not in a section! */
2968 _bfd_error_handler (_("Failed to update file offsets in debug directory"));
3508 /* Return the length (number of units) of the first character in S,
3509 putting its 'ucs4_t' representation in *PUC. */
3572 function however goes by different names in the two environments... */
3721 their ID is stored in the NAME entry. The bottom four bits are used as
3762 /* FIXME: Should we continue the loop in order to report other duplicates ? */
3766 theatrics here - we are only interested in (case sensitive) equality. */
3789 We need to allocate an extra COPY_NEEDED bytes in A and then bring
3790 in B's strings. */
3835 /* Sort the entries in given part of the directory.
3879 even if they differ in language. Zero-language manifests
4115 does *not* sort the input .rsrc sections, so that the order in the
4116 linkinfo list matches the order in the output .rsrc section.
4210 We must ensure that the merged entries are in ascending order.
4304 /* There are a few fields that need to be filled in now while we
4308 they are in the symbol table, so get them from there. */
4330 (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"),
4350 (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"),
4371 (_("%B: unable to fill in DataDictionary[12] because .idata$5 is missing"),
4391 (_("%B: unable to fill in DataDictionary[PE_IMPORT_ADDRESS_TABLE (12)] because .idata$6 is missing"),
4433 (_("%B: unable to fill in DataDictionary[PE_IMPORT_ADDRESS_TABLE(12)]"
4458 (_("%B: unable to fill in DataDictionary[9] because __tls_used is missing"),
4506 trivial program or are in DEEP trouble; we have to assume trivial