Home | History | Annotate | Download | only in bfd

Lines Matching refs:native

862       if (coff_symbol_ptr && coff_symbol_ptr->native)
864 combined_entry_type *s = coff_symbol_ptr->native;
907 if (coff_symbol_ptr && coff_symbol_ptr->native)
910 combined_entry_type *s = coff_symbol_ptr->native;
999 combined_entry_type *native,
1017 BFD_ASSERT (native->is_sym);
1018 if (native->u.syment.n_sclass == C_FILE
1019 && native->u.syment.n_numaux > 0)
1027 native->u.syment._n._n_n._n_offset = STRING_SIZE_SIZE + indx;
1028 native->u.syment._n._n_n._n_zeroes = 0;
1031 strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN);
1033 BFD_ASSERT (! (native + 1)->is_sym);
1034 if (!coff_write_auxent_fname (abfd, name, &(native + 1)->u.auxent,
1042 strncpy (native->u.syment._n._n_name, symbol->name, SYMNMLEN);
1044 else if (!bfd_coff_symname_in_debug (abfd, &native->u.syment))
1050 native->u.syment._n._n_n._n_offset = STRING_SIZE_SIZE + indx;
1051 native->u.syment._n._n_n._n_zeroes = 0;
1086 native->u.syment._n._n_n._n_offset =
1088 native->u.syment._n._n_n._n_zeroes = 0;
1107 combined_entry_type *native,
1114 unsigned int numaux = native->u.syment.n_numaux;
1115 int type = native->u.syment.n_type;
1116 int n_sclass = (int) native->u.syment.n_sclass;
1123 BFD_ASSERT (native->is_sym);
1125 if (native->u.syment.n_sclass == C_FILE)
1130 native->u.syment.n_scnum = N_DEBUG;
1133 native->u.syment.n_scnum = N_ABS;
1136 native
1139 native->u.syment.n_scnum =
1142 if (!coff_fix_symbol_name (abfd, symbol, native, strtab, hash,
1150 bfd_coff_swap_sym_out (abfd, &native->u.syment, buf);
1155 if (native->u.syment.n_numaux > 0)
1164 for (j = 0; j < native->u.syment.n_numaux; j++)
1166 BFD_ASSERT (! (native + j + 1)->is_sym);
1170 if (native->u.syment.n_sclass == C_FILE
1171 && (native + j + 1)->u.auxent.x_file.x_ftype
1172 && (native + j + 1)->extrap)
1173 coff_write_auxent_fname (abfd, (char *) (native + j + 1)->extrap,
1174 &(native + j + 1)->u.auxent, strtab, hash);
1177 &((native + j + 1)->u.auxent),
1179 native->u.syment.n_numaux,
1208 combined_entry_type *native;
1226 native = dummy;
1227 native->is_sym = true;
1228 native[1].is_sym = false;
1229 native->u.syment.n_type = T_NULL;
1230 native->u.syment.n_flags = 0;
1231 native->u.syment.n_numaux = 0;
1234 native->u.syment.n_scnum = N_UNDEF;
1235 native->u.syment.n_value = symbol->value;
1239 native->u.syment.n_scnum = N_UNDEF;
1240 native->u.syment.n_value = symbol->value;
1244 native->u.syment.n_scnum = N_DEBUG;
1245 native->u.syment.n_numaux = 1;
1260 native->u.syment.n_scnum = output_section->target_index;
1261 native->u.syment.n_value = (symbol->value
1264 native->u.syment.n_value += output_section->vma;
1271 native->u.syment.n_flags = bfd_asymbol_bfd (&c->symbol)->flags;
1275 native->u.syment.n_type = 0;
1277 native->u.syment.n_sclass = C_FILE;
1279 native->u.syment.n_sclass = C_STAT;
1281 native->u.syment.n_sclass = obj_pe (abfd) ? C_NT_WEAK : C_WEAKEXT;
1283 native->u.syment.n_sclass = C_EXT;
1285 ret = coff_write_symbol (abfd, symbol, native, written, strtab, hash,
1288 *isym = native->u.syment;
1292 /* Write a native symbol to a COFF file. */
1302 combined_entry_type *native = symbol->native;
1314 BFD_ASSERT (native->is_sym);
1323 if (native->u.syment.n_numaux)
1325 union internal_auxent *a = &((native + 1)->u.auxent);
1347 return coff_write_symbol (abfd, &(symbol->symbol), native, written,
1405 || c_symbol->native == (combined_entry_type *) NULL)
1425 BFD_ASSERT (c_symbol->native->is_sym);
1427 &c_symbol->native->u.syment);
1430 n_sclass = &c_symbol->native->u.syment.n_sclass;
1449 c_symbol->native->u.syment.n_sclass = C_EXT;
2104 new_symbol->native = NULL;
2125 new_symbol->native = (combined_entry_type *) bfd_zalloc (abfd, amt);
2126 if (!new_symbol->native)
2128 new_symbol->native->is_sym = true;
2143 if (coffsymbol (symbol)->native != NULL
2144 && coffsymbol (symbol)->native->fix_value
2145 && coffsymbol (symbol)->native->is_sym)
2147 = (((uintptr_t) coffsymbol (symbol)->native->u.syment.n_value
2172 coffsymbol (symbol)->native ? "n" : "g",
2177 if (coffsymbol (symbol)->native)
2181 combined_entry_type *combined = coffsymbol (symbol)->native;
2319 coffsymbol (symbol)->native ? "n" : "g",
2550 if (coff->native)
2552 combined_entry_type *s = coff->native;
2680 else if (csym->native == NULL)
2682 /* This is an alien symbol which no native coff backend data.
2683 We cheat here by creating a fake native entry for it and
2687 combined_entry_type * native;
2688 size_t amt = sizeof (* native);
2690 native = (combined_entry_type *) bfd_zalloc (abfd, amt);
2691 if (native == NULL)
2694 native->is_sym = true;
2695 native->u.syment.n_type = T_NULL;
2696 native->u.syment.n_sclass = symbol_class;
2700 native->u.syment.n_scnum = N_UNDEF;
2701 native->u.syment.n_value = symbol->value;
2705 native->u.syment.n_scnum = N_UNDEF;
2706 native->u.syment.n_value = symbol->value;
2710 native->u.syment.n_scnum =
2712 native->u.syment.n_value = (symbol->value
2715 native->u.syment.n_value += symbol->section->output_section->vma;
2719 native->u.syment.n_flags = bfd_asymbol_bfd (& csym->symbol)->flags;
2722 csym->native = native;
2725 csym->native->u.syment.n_sclass = symbol_class;
2968 + obj_convert (sec->owner)[cookie->rel->r_symndx])->native->u.syment);