Lines Matching refs:native
762 if (coff_symbol_ptr && coff_symbol_ptr->native) in coff_renumber_symbols()
764 combined_entry_type *s = coff_symbol_ptr->native; in coff_renumber_symbols()
806 if (coff_symbol_ptr && coff_symbol_ptr->native) in coff_mangle_symbols()
809 combined_entry_type *s = coff_symbol_ptr->native; in coff_mangle_symbols()
860 combined_entry_type *native, in coff_fix_symbol_name() argument
877 if (native->u.syment.n_sclass == C_FILE in coff_fix_symbol_name()
878 && native->u.syment.n_numaux > 0) in coff_fix_symbol_name()
884 native->u.syment._n._n_n._n_offset = in coff_fix_symbol_name()
886 native->u.syment._n._n_n._n_zeroes = 0; in coff_fix_symbol_name()
890 strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN); in coff_fix_symbol_name()
892 auxent = &(native + 1)->u.auxent; in coff_fix_symbol_name()
918 strncpy (native->u.syment._n._n_name, symbol->name, SYMNMLEN); in coff_fix_symbol_name()
920 else if (!bfd_coff_symname_in_debug (abfd, &native->u.syment)) in coff_fix_symbol_name()
922 native->u.syment._n._n_n._n_offset = (*string_size_p in coff_fix_symbol_name()
924 native->u.syment._n._n_n._n_zeroes = 0; in coff_fix_symbol_name()
960 native->u.syment._n._n_n._n_offset = in coff_fix_symbol_name()
962 native->u.syment._n._n_n._n_zeroes = 0; in coff_fix_symbol_name()
979 combined_entry_type *native, in coff_write_symbol() argument
985 unsigned int numaux = native->u.syment.n_numaux; in coff_write_symbol()
986 int type = native->u.syment.n_type; in coff_write_symbol()
987 int n_sclass = (int) native->u.syment.n_sclass; in coff_write_symbol()
994 if (native->u.syment.n_sclass == C_FILE) in coff_write_symbol()
999 native->u.syment.n_scnum = N_DEBUG; in coff_write_symbol()
1002 native->u.syment.n_scnum = N_ABS; in coff_write_symbol()
1005 native->u.syment.n_scnum = N_UNDEF; in coff_write_symbol()
1008 native->u.syment.n_scnum = in coff_write_symbol()
1011 coff_fix_symbol_name (abfd, symbol, native, string_size_p, in coff_write_symbol()
1018 bfd_coff_swap_sym_out (abfd, &native->u.syment, buf); in coff_write_symbol()
1023 if (native->u.syment.n_numaux > 0) in coff_write_symbol()
1032 for (j = 0; j < native->u.syment.n_numaux; j++) in coff_write_symbol()
1035 &((native + j + 1)->u.auxent), in coff_write_symbol()
1037 native->u.syment.n_numaux, in coff_write_symbol()
1065 combined_entry_type *native; in coff_write_alien_symbol() local
1082 native = dummy; in coff_write_alien_symbol()
1083 native->u.syment.n_type = T_NULL; in coff_write_alien_symbol()
1084 native->u.syment.n_flags = 0; in coff_write_alien_symbol()
1085 native->u.syment.n_numaux = 0; in coff_write_alien_symbol()
1088 native->u.syment.n_scnum = N_UNDEF; in coff_write_alien_symbol()
1089 native->u.syment.n_value = symbol->value; in coff_write_alien_symbol()
1093 native->u.syment.n_scnum = N_UNDEF; in coff_write_alien_symbol()
1094 native->u.syment.n_value = symbol->value; in coff_write_alien_symbol()
1098 native->u.syment.n_scnum = N_DEBUG; in coff_write_alien_symbol()
1099 native->u.syment.n_numaux = 1; in coff_write_alien_symbol()
1114 native->u.syment.n_scnum = output_section->target_index; in coff_write_alien_symbol()
1115 native->u.syment.n_value = (symbol->value in coff_write_alien_symbol()
1118 native->u.syment.n_value += output_section->vma; in coff_write_alien_symbol()
1125 native->u.syment.n_flags = bfd_asymbol_bfd (&c->symbol)->flags; in coff_write_alien_symbol()
1129 native->u.syment.n_type = 0; in coff_write_alien_symbol()
1131 native->u.syment.n_sclass = C_FILE; in coff_write_alien_symbol()
1133 native->u.syment.n_sclass = C_STAT; in coff_write_alien_symbol()
1135 native->u.syment.n_sclass = obj_pe (abfd) ? C_NT_WEAK : C_WEAKEXT; in coff_write_alien_symbol()
1137 native->u.syment.n_sclass = C_EXT; in coff_write_alien_symbol()
1139 ret = coff_write_symbol (abfd, symbol, native, written, string_size_p, in coff_write_alien_symbol()
1142 *isym = native->u.syment; in coff_write_alien_symbol()
1156 combined_entry_type *native = symbol->native; in coff_write_native_symbol() local
1176 if (native->u.syment.n_numaux) in coff_write_native_symbol()
1178 union internal_auxent *a = &((native + 1)->u.auxent); in coff_write_native_symbol()
1200 return coff_write_symbol (abfd, &(symbol->symbol), native, written, in coff_write_native_symbol()
1257 || c_symbol->native == (combined_entry_type *) NULL) in coff_write_symbols()
1278 &c_symbol->native->u.syment); in coff_write_symbols()
1281 n_sclass = &c_symbol->native->u.syment.n_sclass; in coff_write_symbols()
1300 c_symbol->native->u.syment.n_sclass = C_EXT; in coff_write_symbols()
1364 || c_symbol->native == NULL) in coff_write_symbols()
1370 &c_symbol->native->u.syment)) in coff_write_symbols()
1375 else if (c_symbol->native->u.syment.n_sclass == C_FILE in coff_write_symbols()
1376 && c_symbol->native->u.syment.n_numaux > 0) in coff_write_symbols()
1914 new_symbol->native = 0; in coff_make_empty_symbol()
1937 new_symbol->native = (combined_entry_type *) bfd_zalloc (abfd, amt); in coff_bfd_make_debug_symbol()
1938 if (!new_symbol->native) in coff_bfd_make_debug_symbol()
1954 if (coffsymbol (symbol)->native != NULL in coff_get_symbol_info()
1955 && coffsymbol (symbol)->native->fix_value) in coff_get_symbol_info()
1956 ret->value = coffsymbol (symbol)->native->u.syment.n_value - in coff_get_symbol_info()
1970 if (csym == NULL || csym->native == NULL) in bfd_coff_get_syment()
1976 *psyment = csym->native->u.syment; in bfd_coff_get_syment()
1978 if (csym->native->fix_value) in bfd_coff_get_syment()
2001 || csym->native == NULL in bfd_coff_get_auxent()
2002 || indx >= csym->native->u.syment.n_numaux) in bfd_coff_get_auxent()
2008 ent = csym->native + indx + 1; in bfd_coff_get_auxent()
2048 coffsymbol (symbol)->native ? "n" : "g", in coff_print_symbol()
2053 if (coffsymbol (symbol)->native) in coff_print_symbol()
2057 combined_entry_type *combined = coffsymbol (symbol)->native; in coff_print_symbol()
2167 coffsymbol (symbol)->native ? "n" : "g", in coff_print_symbol()
2344 if (coff->native) in coff_find_nearest_line_with_names()
2346 combined_entry_type *s = coff->native; in coff_find_nearest_line_with_names()
2482 else if (csym->native == NULL) in bfd_coff_set_symbol_class()
2489 combined_entry_type * native; in bfd_coff_set_symbol_class() local
2490 bfd_size_type amt = sizeof (* native); in bfd_coff_set_symbol_class()
2492 native = (combined_entry_type *) bfd_zalloc (abfd, amt); in bfd_coff_set_symbol_class()
2493 if (native == NULL) in bfd_coff_set_symbol_class()
2496 native->u.syment.n_type = T_NULL; in bfd_coff_set_symbol_class()
2497 native->u.syment.n_sclass = symbol_class; in bfd_coff_set_symbol_class()
2501 native->u.syment.n_scnum = N_UNDEF; in bfd_coff_set_symbol_class()
2502 native->u.syment.n_value = symbol->value; in bfd_coff_set_symbol_class()
2506 native->u.syment.n_scnum = N_UNDEF; in bfd_coff_set_symbol_class()
2507 native->u.syment.n_value = symbol->value; in bfd_coff_set_symbol_class()
2511 native->u.syment.n_scnum = in bfd_coff_set_symbol_class()
2513 native->u.syment.n_value = (symbol->value in bfd_coff_set_symbol_class()
2516 native->u.syment.n_value += symbol->section->output_section->vma; in bfd_coff_set_symbol_class()
2520 native->u.syment.n_flags = bfd_asymbol_bfd (& csym->symbol)->flags; in bfd_coff_set_symbol_class()
2523 csym->native = native; in bfd_coff_set_symbol_class()
2526 csym->native->u.syment.n_sclass = symbol_class; in bfd_coff_set_symbol_class()