Home | History | Annotate | Download | only in bfd

Lines Matching refs:native

864       if (coff_symbol_ptr && coff_symbol_ptr->native)
866 combined_entry_type *s = coff_symbol_ptr->native;
909 if (coff_symbol_ptr && coff_symbol_ptr->native)
912 combined_entry_type *s = coff_symbol_ptr->native;
1001 combined_entry_type *native,
1019 BFD_ASSERT (native->is_sym);
1020 if (native->u.syment.n_sclass == C_FILE
1021 && native->u.syment.n_numaux > 0)
1029 native->u.syment._n._n_n._n_offset = STRING_SIZE_SIZE + indx;
1030 native->u.syment._n._n_n._n_zeroes = 0;
1033 strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN);
1035 BFD_ASSERT (! (native + 1)->is_sym);
1036 if (!coff_write_auxent_fname (abfd, name, &(native + 1)->u.auxent,
1044 strncpy (native->u.syment._n._n_name, symbol->name, SYMNMLEN);
1046 else if (!bfd_coff_symname_in_debug (abfd, &native->u.syment))
1052 native->u.syment._n._n_n._n_offset = STRING_SIZE_SIZE + indx;
1053 native->u.syment._n._n_n._n_zeroes = 0;
1088 native->u.syment._n._n_n._n_offset =
1090 native->u.syment._n._n_n._n_zeroes = 0;
1109 combined_entry_type *native,
1116 unsigned int numaux = native->u.syment.n_numaux;
1117 int type = native->u.syment.n_type;
1118 int n_sclass = (int) native->u.syment.n_sclass;
1125 BFD_ASSERT (native->is_sym);
1127 if (native->u.syment.n_sclass == C_FILE)
1132 native->u.syment.n_scnum = N_DEBUG;
1135 native
1138 native->u.syment.n_scnum = N_UNDEF;
1141 native->u.syment.n_scnum =
1144 if (!coff_fix_symbol_name (abfd, symbol, native, strtab, hash,
1152 bfd_coff_swap_sym_out (abfd, &native->u.syment, buf);
1157 if (native->u.syment.n_numaux > 0)
1166 for (j = 0; j < native->u.syment.n_numaux; j++)
1168 BFD_ASSERT (! (native + j + 1)->is_sym);
1172 if (native->u.syment.n_sclass == C_FILE
1173 && (native + j + 1)->u.auxent.x_file.x_ftype
1174 && (native + j + 1)->extrap)
1175 coff_write_auxent_fname (abfd, (char *) (native + j + 1)->extrap,
1176 &(native + j + 1)->u.auxent, strtab, hash);
1179 &((native + j + 1)->u.auxent),
1181 native->u.syment.n_numaux,
1210 combined_entry_type *native;
1228 native = dummy;
1229 native->is_sym = true;
1230 native[1].is_sym = false;
1231 native->u.syment.n_type = T_NULL;
1232 native->u.syment.n_flags = 0;
1233 native->u.syment.n_numaux = 0;
1236 native->u.syment.n_scnum = N_UNDEF;
1237 native->u.syment.n_value = symbol->value;
1241 native->u.syment.n_scnum = N_UNDEF;
1242 native->u.syment.n_value = symbol->value;
1246 native->u.syment.n_scnum = N_DEBUG;
1247 native->u.syment.n_numaux = 1;
1264 native->u.syment.n_scnum = output_section->target_index;
1265 native->u.syment.n_value = symbol->value;
1269 native->u.syment.n_value =
1272 native->u.syment.n_value += isec->output_offset;
1274 native->u.syment.n_value += output_section->vma;
1281 native->u.syment.n_flags = bfd_asymbol_bfd (&c->symbol)->flags;
1291 native->u.syment.n_type = DT_FCN << 4;
1292 native->u.syment.n_numaux = 1;
1293 native[1].u.auxent.x_sym.x_misc.x_fsize
1302 native->u.syment.n_sclass = C_FILE;
1304 native->u.syment.n_sclass = C_STAT;
1306 native->u.syment.n_sclass = obj_pe (abfd) ? C_NT_WEAK : C_WEAKEXT;
1308 native->u.syment.n_sclass = C_EXT;
1310 ret = coff_write_symbol (abfd, symbol, native, written, strtab, hash,
1313 *isym = native->u.syment;
1317 /* Write a native symbol to a COFF file. */
1327 combined_entry_type *native = symbol->native;
1339 BFD_ASSERT (native->is_sym);
1348 if (native->u.syment.n_numaux)
1350 union internal_auxent *a = &((native + 1)->u.auxent);
1372 return coff_write_symbol (abfd, &(symbol->symbol), native, written,
1430 || c_symbol->native == (combined_entry_type *) NULL)
1450 BFD_ASSERT (c_symbol->native->is_sym);
1452 &c_symbol->native->u.syment);
1455 n_sclass = &c_symbol->native->u.syment.n_sclass;
1474 c_symbol->native->u.syment.n_sclass = C_EXT;
2129 new_symbol->native = NULL;
2150 new_symbol->native = (combined_entry_type *) bfd_zalloc (abfd, amt);
2151 if (!new_symbol->native)
2153 new_symbol->native->is_sym = true;
2168 if (coffsymbol (symbol)->native != NULL
2169 && coffsymbol (symbol)->native->fix_value
2170 && coffsymbol (symbol)->native->is_sym)
2172 = (((uintptr_t) coffsymbol (symbol)->native->u.syment.n_value
2197 coffsymbol (symbol)->native ? "n" : "g",
2202 if (coffsymbol (symbol)->native)
2206 combined_entry_type *combined = coffsymbol (symbol)->native;
2344 coffsymbol (symbol)->native ? "n" : "g",
2575 if (coff->native)
2577 combined_entry_type *s = coff->native;
2705 else if (csym->native == NULL)
2707 /* This is an alien symbol which no native coff backend data.
2708 We cheat here by creating a fake native entry for it and
2712 combined_entry_type * native;
2713 size_t amt = sizeof (* native);
2715 native = (combined_entry_type *) bfd_zalloc (abfd, amt);
2716 if (native == NULL)
2719 native->is_sym = true;
2720 native->u.syment.n_type = T_NULL;
2721 native->u.syment.n_sclass = symbol_class;
2725 native->u.syment.n_scnum = N_UNDEF;
2726 native->u.syment.n_value = symbol->value;
2730 native->u.syment.n_scnum = N_UNDEF;
2731 native->u.syment.n_value = symbol->value;
2735 native->u.syment.n_scnum =
2737 native->u.syment.n_value = (symbol->value
2740 native->u.syment.n_value += symbol->section->output_section->vma;
2744 native->u.syment.n_flags = bfd_asymbol_bfd (& csym->symbol)->flags;
2747 csym->native = native;
2750 csym->native->u.syment.n_sclass = symbol_class;
2998 + obj_convert (sec->owner)[cookie->rel->r_symndx])->native->u.syment);