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

Lines Matching +defs:name +defs:pos

190   const unsigned char *name = (const unsigned char *) namearg;
195 while ((ch = *name++) != '\0')
215 const unsigned char *name = (const unsigned char *) namearg;
219 while ((ch = *name++) != '\0')
340 file_ptr pos;
356 pos = symtab_hdr->sh_offset + symoffset * extsym_size;
363 || bfd_seek (ibfd, pos, SEEK_SET) != 0
375 pos = shndx_hdr->sh_offset + symoffset * sizeof (Elf_External_Sym_Shndx);
383 || bfd_seek (ibfd, pos, SEEK_SET) != 0
422 /* Look up a symbol name. */
429 const char *name;
442 name = bfd_elf_string_from_elf_section (abfd, shindex, iname);
443 if (name == NULL)
444 name = "(null)";
445 else if (sym_sec && *name == '\0')
446 name = bfd_section_name (abfd, sym_sec);
448 return name;
460 /* Return the name of the group signature symbol. Why isn't the
487 /* Set next_in_group list pointer, and group name for NEWSECT. */
614 /* Snarf the group name from other member, and
734 shdr->bfd_section->name);
753 const char *name,
762 BFD_ASSERT (strcmp (name,
767 newsect = bfd_make_section_anyway (abfd, name);
819 /* The debugging sections appear to be recognized only by name,
823 const char *name;
845 if (name [0] == '.')
847 int i = name [1] - 'd';
850 && debug_sections [i].name != NULL
851 && strncmp (&name [1], debug_sections [i].name,
857 /* As a GNU extension, if the name begins with .gnu.linkonce, we
863 if (CONST_STRNEQ (name, ".gnu.linkonce")
949 struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name);
960 bfd_elf_find_section (bfd *abfd, char *name)
976 if (!strcmp (&shstrtab[i_shdrp[i]->sh_name], name))
1194 const char *name;
1208 name = ab;
1211 case DT_NEEDED: name = "NEEDED"; stringp = TRUE; break;
1212 case DT_PLTRELSZ: name = "PLTRELSZ"; break;
1213 case DT_PLTGOT: name = "PLTGOT"; break;
1214 case DT_HASH: name = "HASH"; break;
1215 case DT_STRTAB: name = "STRTAB"; break;
1216 case DT_SYMTAB: name = "SYMTAB"; break;
1217 case DT_RELA: name = "RELA"; break;
1218 case DT_RELASZ: name = "RELASZ"; break;
1219 case DT_RELAENT: name = "RELAENT"; break;
1220 case DT_STRSZ: name = "STRSZ"; break;
1221 case DT_SYMENT: name = "SYMENT"; break;
1222 case DT_INIT: name = "INIT"; break;
1223 case DT_FINI: name = "FINI"; break;
1224 case DT_SONAME: name = "SONAME"; stringp = TRUE; break;
1225 case DT_RPATH: name = "RPATH"; stringp = TRUE; break;
1226 case DT_SYMBOLIC: name = "SYMBOLIC"; break;
1227 case DT_REL: name = "REL"; break;
1228 case DT_RELSZ: name = "RELSZ"; break;
1229 case DT_RELENT: name = "RELENT"; break;
1230 case DT_PLTREL: name = "PLTREL"; break;
1231 case DT_DEBUG: name = "DEBUG"; break;
1232 case DT_TEXTREL: name = "TEXTREL"; break;
1233 case DT_JMPREL: name = "JMPREL"; break;
1234 case DT_BIND_NOW: name = "BIND_NOW"; break;
1235 case DT_INIT_ARRAY: name = "INIT_ARRAY"; break;
1236 case DT_FINI_ARRAY: name = "FINI_ARRAY"; break;
1237 case DT_INIT_ARRAYSZ: name = "INIT_ARRAYSZ"; break;
1238 case DT_FINI_ARRAYSZ: name = "FINI_ARRAYSZ"; break;
1239 case DT_RUNPATH: name = "RUNPATH"; stringp = TRUE; break;
1240 case DT_FLAGS: name = "FLAGS"; break;
1241 case DT_PREINIT_ARRAY: name = "PREINIT_ARRAY"; break;
1242 case DT_PREINIT_ARRAYSZ: name = "PREINIT_ARRAYSZ"; break;
1243 case DT_CHECKSUM: name = "CHECKSUM"; break;
1244 case DT_PLTPADSZ: name = "PLTPADSZ"; break;
1245 case DT_MOVEENT: name = "MOVEENT"; break;
1246 case DT_MOVESZ: name = "MOVESZ"; break;
1247 case DT_FEATURE: name = "FEATURE"; break;
1248 case DT_POSFLAG_1: name = "POSFLAG_1"; break;
1249 case DT_SYMINSZ: name = "SYMINSZ"; break;
1250 case DT_SYMINENT: name = "SYMINENT"; break;
1251 case DT_CONFIG: name = "CONFIG"; stringp = TRUE; break;
1252 case DT_DEPAUDIT: name = "DEPAUDIT"; stringp = TRUE; break;
1253 case DT_AUDIT: name = "AUDIT"; stringp = TRUE; break;
1254 case DT_PLTPAD: name = "PLTPAD"; break;
1255 case DT_MOVETAB: name = "MOVETAB"; break;
1256 case DT_SYMINFO: name = "SYMINFO"; break;
1257 case DT_RELACOUNT: name = "RELACOUNT"; break;
1258 case DT_RELCOUNT: name = "RELCOUNT"; break;
1259 case DT_FLAGS_1: name = "FLAGS_1"; break;
1260 case DT_VERSYM: name = "VERSYM"; break;
1261 case DT_VERDEF: name = "VERDEF"; break;
1262 case DT_VERDEFNUM: name = "VERDEFNUM"; break;
1263 case DT_VERNEED: name = "VERNEED"; break;
1264 case DT_VERNEEDNUM: name = "VERNEEDNUM"; break;
1265 case DT_AUXILIARY: name = "AUXILIARY"; stringp = TRUE; break;
1266 case DT_USED: name = "USED"; break;
1267 case DT_FILTER: name = "FILTER"; stringp = TRUE; break;
1268 case DT_GNU_HASH: name = "GNU_HASH"; break;
1271 fprintf (f, " %-11s ", name);
1361 fprintf (file, "%s", symbol->name);
1371 const char *name = NULL;
1376 section_name = symbol->section ? symbol->section->name : "(*none*)";
1380 name = (*bed->elf_backend_print_symbol_all) (abfd, filep, symbol);
1382 if (name == NULL)
1384 name = symbol->name;
1465 fprintf (file, " %s", name);
1635 tell the backend linker what file name to use for the DT_NEEDED
1639 bfd_elf_set_dt_needed_name (bfd *abfd, const char *name)
1643 elf_dt_name (abfd) = name;
1690 /* Get the name actually used for a dynamic object for a link. This
1768 l->name = string;
1819 const char *name;
1821 name = bfd_elf_string_from_elf_section (abfd,
1824 if (name == NULL)
1842 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1845 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
1900 && ! _bfd_elf_make_section_from_shdr (abfd, hdr, name,
1946 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1982 return _bfd_elf_make_section_from_shdr (abfd, hdr, name,
2011 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2032 abfd, hdr->sh_link, name, shindex));
2033 return _bfd_elf_make_section_from_shdr (abfd, hdr, name,
2086 return _bfd_elf_make_section_from_shdr (abfd, hdr, name,
2123 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2130 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2135 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2143 name. */
2146 name = group_signature (abfd, hdr);
2147 if (name == NULL)
2149 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2175 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2186 abfd, name, hdr->sh_type);
2189 return _bfd_elf_make_section_from_shdr (abfd, hdr, name,
2198 abfd, name, hdr->sh_type);
2209 abfd, name, hdr->sh_type);
2212 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2218 abfd, name, hdr->sh_type);
2411 _bfd_elf_get_special_section (const char *name,
2418 len = strlen (name);
2427 if (memcmp (name, spec[i].prefix, prefix_len) != 0)
2433 if (name[prefix_len] != 0)
2437 if (name[prefix_len] != '.'
2447 if (memcmp (name + len - suffix_len,
2466 if (sec->name == NULL)
2473 spec = _bfd_elf_get_special_section (sec->name,
2480 if (sec->name[0] != '.')
2483 i = sec->name[1] - 'b';
2492 return _bfd_elf_get_special_section (sec->name, spec, sec->use_rela_p);
2537 Since program segments have no names, we generate a synthetic name
2564 char *name;
2574 name = bfd_alloc (abfd, len);
2575 if (!name)
2577 memcpy (name, namebuf, len);
2578 newsect = bfd_make_section (abfd, name);
2607 name = bfd_alloc (abfd, len);
2608 if (!name)
2610 memcpy (name, namebuf, len);
2611 newsect = bfd_make_section (abfd, name);
2689 char *name;
2691 bfd_size_type amt = sizeof ".rela" + strlen (asect->name);
2693 name = bfd_alloc (abfd, amt);
2694 if (name == NULL)
2696 sprintf (name, "%s%s", use_rela_p ? ".rela" : ".rel", asect->name);
2698 (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd), name,
2734 asect->name, FALSE);
3123 const char *name;
3223 /* We look up the section the relocs apply to by name. */
3224 name = sec->name;
3226 name += 4;
3228 name += 5;
3229 s = bfd_get_section_by_name (abfd, name);
3236 string section. We look for a section with the same name
3239 if (CONST_STRNEQ (sec->name, ".stab")
3240 && strcmp (sec->name + strlen (sec->name) - 3, "str") == 0)
3245 len = strlen (sec->name);
3249 memcpy (alc, sec->name, len - 3);
3647 && CONST_STRNEQ (s->name, ".note"))
4029 && CONST_STRNEQ (s->name, ".note"))
4406 && strcmp (m->sections[0]->name, ".dynamic") != 0)
4666 : hdr->bfd_section->name)));
5160 "elf_symbol_from_bfd_symbol 0x%.8lx, name = %s, sym num = %d, flags = 0x%.8lx%s\n",
5161 (long) asym_ptr, asym_ptr->name, idx, flags,
6267 /* Local section symbols have no name. */
6273 syms[idx]->name,
6360 sec2 = bfd_get_section_by_name (abfd, sec->name);
6365 syms[idx]->name ? syms[idx]->name : "<Local sym>",
6366 sec->name);
6972 /* Return whether a symbol name implies a local symbol. Most targets
6978 const char *name)
6981 if (name[0] == '.' && name[1] == 'L')
6986 if (name[0] == '.' && name[1] == '.')
6995 if (name[0] == '_' && name[1] == '.' && name[2] == 'L' && name[3] == '_')
7040 choose the right file name for global symbols. File symbols are
7045 make a better choice of file name for local symbols by ignoring
7226 bfd_signed_vma pos;
7233 pos = hdr->sh_offset + offset;
7234 if (bfd_seek (abfd, pos, SEEK_SET) != 0
7340 abfd, areloc->howto->name);
7398 elfcore_maybe_make_sect (bfd *abfd, char *name, asection *sect)
7402 if (bfd_get_section_by_name (abfd, name) != NULL)
7405 sect2 = bfd_make_section_with_flags (abfd, name, sect->flags);
7424 char *name,
7433 /* Build the section name. */
7435 sprintf (buf, "%s/%d", name, elfcore_make_pid (abfd));
7450 return elfcore_maybe_make_sect (abfd, name, sect);
7534 char *name,
7537 return _bfd_elfcore_make_pseudosection (abfd, name,
7701 char *name;
7721 name = bfd_alloc (abfd, len);
7722 if (name == NULL)
7724 memcpy (name, buf, len);
7726 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
7750 name = bfd_alloc (abfd, len);
7751 if (name == NULL)
7753 memcpy (name, buf, len);
7755 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
7781 char *name;
7804 name = bfd_alloc (abfd, len);
7805 if (name == NULL)
7808 memcpy (name, buf, len);
7810 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
7831 name = bfd_alloc (abfd, len);
7832 if (name == NULL)
7835 memcpy (name, buf, len);
7837 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
7953 /* Command name at 0x7c (max 32 bytes, including nul). */
8031 char *name;
8061 name = bfd_alloc (abfd, strlen (buf) + 1);
8062 if (name == NULL)
8064 strcpy (name, buf);
8066 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
8084 char *name;
8090 name = bfd_alloc (abfd, strlen (buf) + 1);
8091 if (name == NULL)
8093 strcpy (name, buf);
8095 sect = bfd_make_section_anyway_with_flags (abfd, name, SEC_HAS_CONTENTS);
8142 name of note
8159 const char *name,
8170 if (name != NULL)
8171 namesz = strlen (name) + 1;
8182 dest = xnp->name;
8183 if (name != NULL)
8185 memcpy (dest, name, namesz);
8434 in.namedata = xnp->name;
8726 size += strlen ((*p->sym_ptr_ptr)->name) + sizeof ("@plt");
8751 s->name = names;
8752 len = strlen ((*p->sym_ptr_ptr)->name);
8753 memcpy (names, (*p->sym_ptr_ptr)->name, len);
8765 unsigned long st_name; /* Symbol name, index in string tbl */
8784 const char *name;
8803 return strcmp (s1->name, s2->name);
8887 section name. */
8888 if (CONST_STRNEQ (sec1->name, ".gnu.linkonce")
8889 && CONST_STRNEQ (sec2->name, ".gnu.linkonce"))
8890 return strcmp (sec1->name + sizeof ".gnu.linkonce",
8891 sec2->name + sizeof ".gnu.linkonce") == 0;
8905 same group name. */
9013 symp->name = bfd_elf_string_from_elf_section (bfd1,
9023 symp->name = bfd_elf_string_from_elf_section (bfd2,
9028 /* Sort symbol by name. */
9035 /* Two symbols must have the same binding, type and name. */
9038 || strcmp (symtable1 [i].name, symtable2 [i].name) != 0)
9065 symtable1[i].name
9070 symtable2[i].name
9074 /* Sort symbol by name. */
9081 /* Two symbols must have the same binding, type and name. */
9084 || strcmp (symtable1 [i].name, symtable2 [i].name) != 0)