Home | History | Annotate | Download | only in bfd

Lines Matching full:syment

645 		    struct internal_syment *syment)
652 syment->n_scnum = N_UNDEF;
653 syment->n_value = coff_symbol_ptr->symbol.value;
658 syment->n_value = coff_symbol_ptr->symbol.value;
662 syment->n_scnum = N_UNDEF;
663 syment->n_value = 0;
670 syment->n_scnum =
673 syment->n_value = (coff_symbol_ptr->symbol.value
677 syment->n_value += (syment->n_sclass == C_STATLAB)
686 syment->n_scnum = N_ABS;
687 syment->n_value = coff_symbol_ptr->symbol.value;
768 if (s->u.syment.n_sclass == C_FILE)
772 last_file = &(s->u.syment);
777 fixup_symbol_value (bfd_ptr, coff_symbol_ptr, &(s->u.syment));
779 for (i = 0; i < s->u.syment.n_numaux + 1; i++)
816 s->u.syment.n_value =
818 ((bfd_hostptr_t) s->u.syment.n_value))->offset;
826 s->u.syment.n_value =
828 + s->u.syment.n_value * bfd_coff_linesz (bfd_ptr));
833 for (i = 0; i < s->u.syment.n_numaux; i++)
882 if (native->u.syment.n_sclass == C_FILE
883 && native->u.syment.n_numaux > 0)
889 native->u.syment._n._n_n._n_offset =
891 native->u.syment._n._n_n._n_zeroes = 0;
895 strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN);
924 strncpy (native->u.syment._n._n_name, symbol->name, SYMNMLEN);
926 else if (!bfd_coff_symname_in_debug (abfd, &native->u.syment))
928 native->u.syment._n._n_n._n_offset = (*string_size_p
930 native->u.syment._n._n_n._n_zeroes = 0;
966 native->u.syment._n._n_n._n_offset =
968 native->u.syment._n._n_n._n_zeroes = 0;
991 unsigned int numaux = native->u.syment.n_numaux;
992 int type = native->u.syment.n_type;
993 int n_sclass = (int) native->u.syment.n_sclass;
1002 if (native->u.syment.n_sclass == C_FILE)
1007 native->u.syment.n_scnum = N_DEBUG;
1010 native->u.syment.n_scnum = N_ABS;
1013 native->u.syment.n_scnum = N_UNDEF;
1016 native->u.syment.n_scnum =
1026 bfd_coff_swap_sym_out (abfd, &native->u.syment, buf);
1031 if (native->u.syment.n_numaux > 0)
1040 for (j = 0; j < native->u.syment.n_numaux; j++)
1046 native->u.syment.n_numaux,
1095 native->u.syment.n_type = T_NULL;
1096 native->u.syment.n_flags = 0;
1097 native->u.syment.n_numaux = 0;
1100 native->u.syment.n_scnum = N_UNDEF;
1101 native->u.syment.n_value = symbol->value;
1105 native->u.syment.n_scnum = N_UNDEF;
1106 native->u.syment.n_value = symbol->value;
1110 native->u.syment.n_scnum = N_DEBUG;
1111 native->u.syment.n_numaux = 1;
1126 native->u.syment.n_scnum = output_section->target_index;
1127 native->u.syment.n_value = (symbol->value
1130 native->u.syment.n_value += output_section->vma;
1137 native->u.syment.n_flags = bfd_asymbol_bfd (&c->symbol)->flags;
1141 native->u.syment.n_type = 0;
1143 native->u.syment.n_sclass = C_FILE;
1145 native->u.syment.n_sclass = C_STAT;
1147 native->u.syment.n_sclass = obj_pe (abfd) ? C_NT_WEAK : C_WEAKEXT;
1149 native->u.syment.n_sclass = C_EXT;
1154 *isym = native->u.syment;
1155 if (iaux != NULL && native->u.syment.n_numaux)
1191 if (native->u.syment.n_numaux)
1294 &c_symbol->native->u.syment);
1297 n_sclass = &c_symbol->native->u.syment.n_sclass;
1316 c_symbol->native->u.syment.n_sclass = C_EXT;
1374 directly in the syment structure. File names permit a
1375 different, longer, length in the syment structure. On
1389 &c_symbol->native->u.syment))
1394 else if (c_symbol->native->u.syment.n_sclass == C_FILE
1395 && c_symbol->native->u.syment.n_numaux > 0)
1523 unsigned int type = symbol->u.syment.n_type;
1524 unsigned int n_sclass = symbol->u.syment.n_sclass;
1806 (void *) & internal_ptr->u.syment);
1811 if (symbol_ptr->u.syment.n_sclass == C_FILE
1812 && symbol_ptr->u.syment.n_numaux > 0
1813 && raw_src + symesz + symbol_ptr->u.syment.n_numaux
1821 i < symbol_ptr->u.syment.n_numaux;
1834 symbol_ptr->u.syment.n_type,
1835 symbol_ptr->u.syment.n_sclass,
1836 (int) i, symbol_ptr->u.syment.n_numaux,
1855 if (internal_ptr->u.syment.n_sclass == C_FILE
1856 && internal_ptr->u.syment.n_numaux > 0)
1876 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) _("<corrupt>");
1878 internal_ptr->u.syment._n._n_n._n_offset =
1886 if (internal_ptr->u.syment.n_numaux > 1
1888 internal_ptr->u.syment._n._n_n._n_offset =
1892 internal_ptr->u.syment.n_numaux * symesz);
1894 internal_ptr->u.syment._n._n_n._n_offset =
1903 if (internal_ptr->u.syment._n._n_n._n_zeroes != 0)
1912 if (internal_ptr->u.syment._n._n_name[i] == '\0')
1918 strncpy (newstring, internal_ptr->u.syment._n._n_name, i);
1919 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) newstring;
1920 internal_ptr->u.syment._n._n_n._n_zeroes = 0;
1922 else if (internal_ptr->u.syment._n._n_n._n_offset == 0)
1923 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) "";
1924 else if (!bfd_coff_symname_in_debug (abfd, &internal_ptr->u.syment))
1934 if (internal_ptr->u.syment._n._n_n._n_offset >= obj_coff_strings_len (abfd)
1935 || string_table + internal_ptr->u.syment._n._n_n._n_offset < string_table)
1936 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) _("<corrupt>");
1938 internal_ptr->u.syment._n._n_n._n_offset =
1941 + internal_ptr->u.syment._n._n_n._n_offset));
1952 if (internal_ptr->u.syment._n._n_n._n_offset > debug_sec->size
1953 || debug_sec_data + internal_ptr->u.syment._n._n_n._n_offset < debug_sec_data)
1954 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) _("<corrupt>");
1956 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t)
1957 (debug_sec_data + internal_ptr->u.syment._n._n_n._n_offset);
1960 internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) "";
1963 internal_ptr += internal_ptr->u.syment.n_numaux;
2037 ret->value = coffsymbol (symbol)->native->u.syment.n_value -
2084 val = (bfd_vma) combined->u.syment.n_value;
2086 val = combined->u.syment.n_value - (bfd_hostptr_t) root;
2089 combined->u.syment.n_scnum,
2090 combined->u.syment.n_flags,
2091 combined->u.syment.n_type,
2092 combined->u.syment.n_sclass,
2093 combined->u.syment.n_numaux);
2097 for (aux = 0; aux < combined->u.syment.n_numaux; aux++)
2113 switch (combined->u.syment.n_sclass)
2120 if (combined->u.syment.n_type == T_NULL)
2139 if (ISFCN (combined->u.syment.n_type))
2293 if (p->u.syment.n_sclass == C_FILE)
2295 p += 1 + p->u.syment.n_numaux;
2305 *filename_ptr = (char *) p->u.syment._n._n_n._n_offset;
2312 for (p2 = p + 1 + p->u.syment.n_numaux;
2314 p2 += 1 + p2->u.syment.n_numaux)
2317 if (p2->u.syment.n_scnum > 0
2320 p2->u.syment.n_scnum)))
2322 if (p2->u.syment.n_sclass == C_FILE)
2331 file_addr = (bfd_vma) p2->u.syment.n_value;
2333 if (p2->u.syment.n_scnum > 0)
2335 p2->u.syment.n_scnum)->vma;
2342 *filename_ptr = (char *) p->u.syment._n._n_n._n_offset;
2343 maxdiff = offset + sec_vma - p2->u.syment.n_value;
2348 if (p >= cof->raw_syments + p->u.syment.n_value)
2351 p = cof->raw_syments + p->u.syment.n_value;
2352 if (p > pend || p->u.syment.n_sclass != C_FILE)
2396 s = s + 1 + s->u.syment.n_numaux;
2400 if (s->u.syment.n_scnum == N_DEBUG)
2401 s = s + 1 + s->u.syment.n_numaux;
2404 if (s->u.syment.n_numaux)
2531 native->u.syment.n_type = T_NULL;
2532 native->u.syment.n_sclass = symbol_class;
2536 native->u.syment.n_scnum = N_UNDEF;
2537 native->u.syment.n_value = symbol->value;
2541 native->u.syment.n_scnum = N_UNDEF;
2542 native->u.syment.n_value = symbol->value;
2546 native->u.syment.n_scnum =
2548 native->u.syment.n_value = (symbol->value
2551 native->u.syment.n_value += symbol->section->output_section->vma;
2555 native->u.syment.n_flags = bfd_asymbol_bfd (& csym->symbol)->flags;
2561 csym->native->u.syment.n_sclass = symbol_class;
2785 + obj_convert (sec->owner)[cookie->rel->r_symndx])->native->u.syment);