• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cxxfilt-11/cxxfilt/bfd/

Lines Matching +defs:file +defs:type

5    This file is part of BFD, the Binary File Descriptor library.
23 This file was hacked up by looking hard at the existing vaxnetbsd
27 * support for V7 file formats
92 #define OMAGIC 0407 /* ...object file or impure executable. */
205 file. */
213 /* An entry in the header file hash table. */
218 /* List of totals we have found for this file. */
231 /* Reloc file positions. */
237 /* Header file hash table. */
251 /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */
338 /* Write an object file.
340 file header, symbols, and relocation. */
430 /* Make all the section for an a.out file. */
444 /* Some a.out variant thinks that the file open in ABFD
445 checking is an a.out file. Do some more checking, and set up
477 /* Set the file flags. */
552 up of virtual addresses between segments, or the starting file
569 /* The file offsets of the sections. */
573 /* The file offsets of the relocation info. */
577 /* The file offsets of the string table and symbol table. */
581 /* Determine the architecture and machine type of the object file. */
603 guess at whether the file is executable. If the entry point
611 erroneous conclusion that the file isn't executable.
627 The a.out file has no information about the text start
675 /* Keep track of machine architecture and machine type for
680 If the architecture is understood, machine type 0 (default)
1163 ("%s: can not represent section `%s' in a.out object file format",
1180 /* Read the external symbols from an a.out file. */
1263 /* Translate an a.out symbol into a BFD symbol. The desc, other, type
1274 if (cache_ptr->type == N_FN)
1282 switch (cache_ptr->type & N_TYPE)
1308 if ((cache_ptr->type & N_EXT) == 0)
1313 switch (cache_ptr->type)
1368 /* Mask out any existing type bits in case copying from one section
1378 file. */
1380 ("%B: can not represent section for symbol `%s' in a.out object file format",
1407 ("%B: can not represent section `%A' in a.out object file format",
1417 sym_pointer->e_type[0] = ((aout_symbol_type *) cache_ptr)->type;
1479 in->type = H_GET_8 (abfd, ext->e_type);
1557 contributing object file tends to have many duplicate stabs
1596 file. */
1638 H_PUT_8 (abfd, aout_symbol(g)->type, nsp.e_type);
1687 /* Output extended relocation information to a file in target byte order. */
1810 to see the file even if it is bad. */
1919 /* Write out a relocation section into an object file. */
2060 if (ret->type == '?')
2062 int type_code = aout_symbol(symbol)->type & 0xff;
2071 ret->type = '-';
2085 FILE *file = (FILE *) afile;
2091 fprintf(file,"%s", symbol->name);
2094 fprintf(file,"%4x %2x %2x",
2097 (unsigned) (aout_symbol (symbol)->type));
2103 bfd_print_symbol_vandf (abfd, (void *) file, symbol);
2105 fprintf (file," %-5s %04x %02x %02x",
2109 (unsigned) (aout_symbol (symbol)->type & 0xff));
2111 fprintf(file," %s", symbol->name);
2186 and return the name of the source file and the line nearest to the
2198 /* Run down the file looking for the filename, function and linenumber. */
2220 switch (q->type)
2223 /* If this looks like a file name symbol, and it comes after
2271 if (q->type != (int) N_SO)
2481 /* Free up the internal symbols read from an a.out file. */
2527 /* Add symbols from an a.out object file. */
2544 /* Look through the internal symbols to see if this object file should
2545 be included in the link. We should include this object file if it
2547 file defines a common symbol, then we may adjust the size of the
2548 known symbol but we do not include the object file in the link
2568 int type = H_GET_8 (abfd, p->e_type);
2573 optimization only, as we check the type more thoroughly
2575 if ((type & N_EXT) == 0
2576 || type == N_FN)
2585 || (h->type != bfd_link_hash_undefined
2586 && h->type != bfd_link_hash_common))
2589 if (type == (N_TEXT | N_EXT)
2590 || type == (N_DATA | N_EXT)
2591 || type == (N_BSS | N_EXT)
2592 || type == (N_ABS | N_EXT))
2594 /* This object file defines this symbol. We must link it
2598 have already seen an object file including
2600 and this object file from the archive includes
2602 In such a case we must include this object file.
2615 if (type == (N_UNDF | N_EXT))
2623 file. */
2624 if (h->type == bfd_link_hash_undefined)
2634 in the object file. This is done for the -u
2644 h->type = bfd_link_hash_common;
2654 architecture of the output file, not of the input
2655 file. */
2675 /* We do not need this object file. */
2710 /* Add all symbols from an object file to the hash table. */
2760 int type;
2769 type = H_GET_8 (abfd, p->e_type);
2775 switch (type)
2825 alignment requirements of a section in a .o file. FIXME:
2827 output file, not the input files. */
2828 if ((*sym_hash)->root.type == bfd_link_hash_common
2837 if ((*sym_hash)->root.type == bfd_link_hash_new)
2848 /* Look up an entry in an the header file hash table. */
2854 /* The function to create a new entry in the header file hash table. */
2887 int type;
2893 if (h->root.type == bfd_link_hash_warning)
2896 if (h->root.type == bfd_link_hash_new)
2925 switch (h->root.type)
2936 type = N_UNDF | N_EXT;
2948 type = h->root.type == bfd_link_hash_defined ? N_TEXT : N_WEAKT;
2950 type = h->root.type == bfd_link_hash_defined ? N_DATA : N_WEAKD;
2952 type = h->root.type == bfd_link_hash_defined ? N_BSS : N_WEAKB;
2954 type = h->root.type == bfd_link_hash_defined ? N_ABS : N_WEAKA;
2955 type |= N_EXT;
2962 type = N_UNDF | N_EXT;
2966 type = N_WEAKU;
2975 H_PUT_8 (output_bfd, type, outsym.e_type);
3016 if (p->type == bfd_section_reloc_link_order)
3031 BFD_ASSERT (p->type == bfd_symbol_reloc_link_order);
3088 r_baserel = (howto->type & 8) != 0;
3089 r_jmptable = (howto->type & 16) != 0;
3090 r_relative = (howto->type & 32) != 0;
3124 /* We have to write the addend into the object file, since
3126 reliable if we had the current contents of the file here,
3127 rather than assuming zeroes, but we can't read the file since
3152 (p->type == bfd_section_reloc_link_order
3193 aout_reloc_type_to_section (bfd *abfd, int type)
3195 switch (type)
3278 /* We are generating a relocatable output file, and must
3287 && (h->root.type == bfd_link_hash_defined
3288 || h->root.type == bfd_link_hash_defweak))
3403 && (h->root.type == bfd_link_hash_defined
3404 || h->root.type == bfd_link_hash_defweak))
3411 && h->root.type == bfd_link_hash_undefweak)
3503 /* Link an a.out section into the output file. */
3573 /* Link an a.out input BFD into the output file. */
3752 /* The relocation and symbol file positions differ among a.out
3758 can compute the relocation file positions. This may or may not
3801 information into the output file. Unfortunately, that will
3807 input file several times, and we will not be able to keep all the
3810 What we do is basically process one input file at a time. We do
3811 everything we need to do with an input file once--copy over the
3815 file, which is unfortunate but still faster than reopening a lot
3830 if (p->type == bfd_indirect_link_order)
3841 if (p->type == bfd_indirect_link_order
3855 else if (p->type == bfd_section_reloc_link_order
3856 || p->type == bfd_symbol_reloc_link_order)
3873 These did not come from any input file. We must do these after
3884 if (p->type == bfd_section_reloc_link_order
3885 || p->type == bfd_symbol_reloc_link_order)
3974 /* Adjust and write out the symbols for an a.out file. Set the new
4001 /* First write out a symbol for this object file, unless we are
4034 int type;
4043 discarding it because it appears in a duplicate header file.
4049 not copied into the output file. We will change it later if
4053 type = H_GET_8 (input_bfd, sym->e_type);
4094 && (h->root.type == bfd_link_hash_indirect
4095 || h->root.type == bfd_link_hash_warning))
4098 while (hresolve->root.type == bfd_link_hash_indirect
4099 || hresolve->root.type == bfd_link_hash_warning)
4107 && h->root.type != bfd_link_hash_warning
4110 if ((type & N_TYPE) == N_INDR
4111 || type == N_WARNING)
4124 if ((type & N_STAB) != 0)
4144 if ((type & N_TYPE) == N_TEXT
4145 || type == N_WEAKT)
4147 else if ((type & N_TYPE) == N_DATA
4148 || type == N_WEAKD)
4150 else if ((type & N_TYPE) == N_BSS
4151 || type == N_WEAKB)
4153 else if ((type & N_TYPE) == N_ABS
4154 || type == N_WEAKA)
4156 else if (((type & N_TYPE) == N_INDR
4158 || (hresolve->root.type != bfd_link_hash_defined
4159 && hresolve->root.type != bfd_link_hash_defweak
4160 && hresolve->root.type != bfd_link_hash_common)))
4161 || type == N_WARNING)
4172 else if ((type & N_STAB) != 0)
4183 if ((type & N_TYPE) == N_INDR)
4193 switch (type & N_TYPE)
4212 else if (hresolve->root.type == bfd_link_hash_defined
4213 || hresolve->root.type == bfd_link_hash_defweak)
4228 /* Get the correct type based on the section. If
4231 if (type == N_SETT
4232 || type == N_SETD
4233 || type == N_SETB
4234 || type == N_SETA)
4235 type |= N_EXT;
4237 type &=~ N_TYPE;
4240 type |= (hresolve->root.type == bfd_link_hash_defined
4244 type |= (hresolve->root.type == bfd_link_hash_defined
4248 type |= (hresolve->root.type == bfd_link_hash_defined
4252 type |= (hresolve->root.type == bfd_link_hash_defined
4256 else if (hresolve->root.type == bfd_link_hash_common)
4258 else if (hresolve->root.type == bfd_link_hash_undefweak)
4261 type = N_WEAKU;
4279 else if ((type & N_TYPE) != N_SETT
4280 && (type & N_TYPE) != N_SETD
4281 && (type & N_TYPE) != N_SETB
4282 && (type & N_TYPE) != N_SETA)
4290 if ((type & N_STAB) == 0
4306 entries for a header file. We need to scan ahead to the
4308 characters in the symbol names, not including the file
4311 if (type == N_BINCL)
4343 /* Skip the file number. */
4353 /* If we have already included a header file with the
4367 file with this set of stabs strings. */
4380 /* This is a duplicate header file. We must change
4383 type = N_EXCL;
4413 H_PUT_8 (output_bfd, type, outsym->e_type);