Lines Matching refs:elf_tdata

251       elf_tdata (abfd)->o = o;  in bfd_elf_allocate_object()
272 elf_tdata (abfd)->core = bfd_zalloc (abfd, sizeof (*elf_tdata (abfd)->core)); in bfd_elf_mkcorefile()
273 return elf_tdata (abfd)->core != NULL; in bfd_elf_mkcorefile()
392 if (symtab_hdr == &elf_tdata (ibfd)->symtab_hdr) in bfd_elf_get_elf_syms()
393 shndx_hdr = &elf_tdata (ibfd)->symtab_shndx_hdr; in bfd_elf_get_elf_syms()
531 hdr = &elf_tdata (abfd)->symtab_hdr; in group_signature()
544 unsigned int num_group = elf_tdata (abfd)->num_group; in setup_group()
574 elf_tdata (abfd)->num_group = num_group; in setup_group()
582 elf_tdata (abfd)->num_group = num_group; in setup_group()
583 elf_tdata (abfd)->group_sect_ptr = (Elf_Internal_Shdr **) in setup_group()
585 if (elf_tdata (abfd)->group_sect_ptr == NULL) in setup_group()
599 elf_tdata (abfd)->group_sect_ptr[num_group] = shdr; in setup_group()
666 if (num_group != (unsigned) elf_tdata (abfd)->num_group) in setup_group()
668 elf_tdata (abfd)->num_group = num_group; in setup_group()
673 elf_tdata (abfd)->group_sect_ptr = NULL; in setup_group()
674 elf_tdata (abfd)->num_group = num_group = -1; in setup_group()
688 Elf_Internal_Shdr *shdr = elf_tdata (abfd)->group_sect_ptr[i]; in setup_group()
753 unsigned int num_group = elf_tdata (abfd)->num_group; in _bfd_elf_setup_sections()
807 Elf_Internal_Shdr *shdr = elf_tdata (abfd)->group_sect_ptr[i]; in _bfd_elf_setup_sections()
982 phdr = elf_tdata (abfd)->phdr; in _bfd_elf_make_section_from_shdr()
991 phdr = elf_tdata (abfd)->phdr; in _bfd_elf_make_section_from_shdr()
1195 p = elf_tdata (abfd)->phdr; in _bfd_elf_print_private_bfd_data()
1367 if ((elf_dynverdef (abfd) != 0 && elf_tdata (abfd)->verdef == NULL) in _bfd_elf_print_private_bfd_data()
1368 || (elf_dynverref (abfd) != 0 && elf_tdata (abfd)->verref == NULL)) in _bfd_elf_print_private_bfd_data()
1379 for (t = elf_tdata (abfd)->verdef; t != NULL; t = t->vd_nextdef) in _bfd_elf_print_private_bfd_data()
1404 for (t = elf_tdata (abfd)->verref; t != NULL; t = t->vn_nextref) in _bfd_elf_print_private_bfd_data()
1489 else if (vernum <= elf_tdata (abfd)->cverdefs) in bfd_elf_print_symbol()
1491 elf_tdata (abfd)->verdef[vernum - 1].vd_nodename; in bfd_elf_print_symbol()
1497 for (t = elf_tdata (abfd)->verref; in bfd_elf_print_symbol()
1717 elf_tdata (abfd)->symtab_hdr = *hdr; in bfd_section_from_shdr()
1718 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->symtab_hdr; in bfd_section_from_shdr()
1782 elf_tdata (abfd)->dynsymtab_hdr = *hdr; in bfd_section_from_shdr()
1783 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr; in bfd_section_from_shdr()
1797 elf_tdata (abfd)->symtab_shndx_hdr = *hdr; in bfd_section_from_shdr()
1798 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->symtab_shndx_hdr; in bfd_section_from_shdr()
1807 elf_tdata (abfd)->shstrtab_hdr = *hdr; in bfd_section_from_shdr()
1808 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr; in bfd_section_from_shdr()
1815 elf_tdata (abfd)->strtab_hdr = *hdr; in bfd_section_from_shdr()
1816 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr; in bfd_section_from_shdr()
1823 elf_tdata (abfd)->dynstrtab_hdr = *hdr; in bfd_section_from_shdr()
1824 hdr = &elf_tdata (abfd)->dynstrtab_hdr; in bfd_section_from_shdr()
1984 elf_tdata (abfd)->dynverdef_hdr = *hdr; in bfd_section_from_shdr()
1993 elf_tdata (abfd)->dynversym_hdr = *hdr; in bfd_section_from_shdr()
1999 elf_tdata (abfd)->dynverref_hdr = *hdr; in bfd_section_from_shdr()
2134 symtab_hdr = &elf_tdata (abfd)->symtab_hdr; in bfd_sym_from_r_symndx()
2798 this_hdr->sh_info = elf_tdata (abfd)->cverdefs; in elf_fake_sections()
2800 BFD_ASSERT (elf_tdata (abfd)->cverdefs == 0 in elf_fake_sections()
2801 || this_hdr->sh_info == elf_tdata (abfd)->cverdefs); in elf_fake_sections()
2810 this_hdr->sh_info = elf_tdata (abfd)->cverrefs; in elf_fake_sections()
2812 BFD_ASSERT (elf_tdata (abfd)->cverrefs == 0 in elf_fake_sections()
2813 || this_hdr->sh_info == elf_tdata (abfd)->cverrefs); in elf_fake_sections()
2960 symtab_hdr = &elf_tdata (igroup->owner)->symtab_hdr; in bfd_elf_set_group_contents()
3031 struct elf_obj_tdata *t = elf_tdata (abfd); in assign_section_numbers()
3598 shstrtab_hdr = &elf_tdata (abfd)->shstrtab_hdr; in _bfd_elf_compute_section_file_positions()
3620 hdr = &elf_tdata (abfd)->symtab_hdr; in _bfd_elf_compute_section_file_positions()
3623 hdr = &elf_tdata (abfd)->symtab_shndx_hdr; in _bfd_elf_compute_section_file_positions()
3627 hdr = &elf_tdata (abfd)->strtab_hdr; in _bfd_elf_compute_section_file_positions()
3749 for (m = elf_seg_map (abfd), p = elf_tdata (abfd)->phdr; in _bfd_elf_find_segment_containing_section()
4553 elf_tdata (abfd)->phdr = phdrs; in assign_file_positions_for_load_sections()
5025 phdrs = elf_tdata (abfd)->phdr; in assign_file_positions_for_non_load_sections()
5225 struct elf_obj_tdata *tdata = elf_tdata (abfd); in assign_file_positions_except_relocs()
5288 Elf_Internal_Phdr *segment = elf_tdata (abfd)->phdr; in assign_file_positions_except_relocs()
5387 elf_tdata (abfd)->symtab_hdr.sh_name = in prep_headers()
5389 elf_tdata (abfd)->strtab_hdr.sh_name = in prep_headers()
5391 elf_tdata (abfd)->shstrtab_hdr.sh_name = in prep_headers()
5393 if (elf_tdata (abfd)->symtab_hdr.sh_name == (unsigned int) -1 in prep_headers()
5394 || elf_tdata (abfd)->strtab_hdr.sh_name == (unsigned int) -1 in prep_headers()
5395 || elf_tdata (abfd)->shstrtab_hdr.sh_name == (unsigned int) -1) in prep_headers()
5474 t = elf_tdata (abfd); in _bfd_elf_write_object_contents()
5740 for (i = 0, segment = elf_tdata (ibfd)->phdr; in rewrite_elf_program_header()
5753 for (i = 0, segment = elf_tdata (ibfd)->phdr; in rewrite_elf_program_header()
5779 for (j = 0, segment2 = elf_tdata (ibfd)->phdr; j < i; j++, segment2++) in rewrite_elf_program_header()
5805 segment = elf_tdata (ibfd)->phdr; in rewrite_elf_program_header()
5827 for (i = 0, segment = elf_tdata (ibfd)->phdr; in rewrite_elf_program_header()
6277 for (i = 0, segment = elf_tdata (ibfd)->phdr; in copy_elf_program_header()
6286 for (i = 0, segment = elf_tdata (ibfd)->phdr; in copy_elf_program_header()
6432 if (elf_tdata (ibfd)->phdr == NULL) in copy_private_bfd_data()
6457 for (i = 0, segment = elf_tdata (ibfd)->phdr; in copy_private_bfd_data()
6521 for (i = 0, segment = elf_tdata (ibfd)->phdr; in copy_private_bfd_data()
6709 if (elf_seg_map (obfd) == NULL && elf_tdata (ibfd)->phdr != NULL) in _bfd_elf_copy_private_header_data()
6800 symtab_hdr = &elf_tdata (abfd)->symtab_hdr; in swap_out_syms()
6807 symstrtab_hdr = &elf_tdata (abfd)->strtab_hdr; in swap_out_syms()
6820 symtab_shndx_hdr = &elf_tdata (abfd)->symtab_shndx_hdr; in swap_out_syms()
7092 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->symtab_hdr; in _bfd_elf_get_symtab_upper_bound()
7107 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->dynsymtab_hdr; in _bfd_elf_get_dynamic_symtab_upper_bound()
7270 hdr = &elf_tdata (abfd)->dynverref_hdr; in _bfd_elf_slurp_version_tables()
7273 elf_tdata (abfd)->verref = (Elf_Internal_Verneed *) in _bfd_elf_slurp_version_tables()
7276 elf_tdata (abfd)->verref = NULL; in _bfd_elf_slurp_version_tables()
7278 if (elf_tdata (abfd)->verref == NULL) in _bfd_elf_slurp_version_tables()
7281 elf_tdata (abfd)->cverrefs = hdr->sh_info; in _bfd_elf_slurp_version_tables()
7287 elf_tdata (abfd)->verref = NULL; in _bfd_elf_slurp_version_tables()
7288 elf_tdata (abfd)->cverrefs = 0; in _bfd_elf_slurp_version_tables()
7302 iverneed = elf_tdata (abfd)->verref; in _bfd_elf_slurp_version_tables()
7391 hdr = &elf_tdata (abfd)->dynverdef_hdr; in _bfd_elf_slurp_version_tables()
7438 elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) in _bfd_elf_slurp_version_tables()
7441 elf_tdata (abfd)->verdef = NULL; in _bfd_elf_slurp_version_tables()
7443 if (elf_tdata (abfd)->verdef == NULL) in _bfd_elf_slurp_version_tables()
7446 elf_tdata (abfd)->cverdefs = maxidx; in _bfd_elf_slurp_version_tables()
7449 iverdefarr = elf_tdata (abfd)->verdef; in _bfd_elf_slurp_version_tables()
7461 elf_tdata (abfd)->verdef = NULL; in _bfd_elf_slurp_version_tables()
7462 elf_tdata (abfd)->cverdefs = 0; in _bfd_elf_slurp_version_tables()
7534 elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) in _bfd_elf_slurp_version_tables()
7536 if (elf_tdata (abfd)->verdef == NULL) in _bfd_elf_slurp_version_tables()
7539 elf_tdata (abfd)->cverdefs = freeidx; in _bfd_elf_slurp_version_tables()
7548 iverdef = &elf_tdata (abfd)->verdef[freeidx - 1]; in _bfd_elf_slurp_version_tables()
7673 cache = elf_tdata (abfd)->elf_find_function_cache; in elf_find_function()
7677 elf_tdata (abfd)->elf_find_function_cache = cache; in elf_find_function()
7773 &elf_tdata (abfd)->dwarf2_find_line_info)) in _bfd_elf_find_nearest_line()
7797 &elf_tdata (abfd)->line_info)) in _bfd_elf_find_nearest_line()
7822 &elf_tdata (abfd)->dwarf2_find_line_info); in _bfd_elf_find_line()
7840 & elf_tdata (abfd)->dwarf2_find_line_info); in _bfd_elf_find_inliner_info()
8003 struct elf_obj_tdata *tdata = elf_tdata (abfd); in _bfd_elf_close_and_cleanup()
8006 if (elf_tdata (abfd)->o != NULL && elf_shstrtab (abfd) != NULL) in _bfd_elf_close_and_cleanup()
8048 pid = elf_tdata (abfd)->core->lwpid; in elfcore_make_pid()
8050 pid = elf_tdata (abfd)->core->pid; in elfcore_make_pid()
8140 if (elf_tdata (abfd)->core->signal == 0) in elfcore_grok_prstatus()
8141 elf_tdata (abfd)->core->signal = prstat.pr_cursig; in elfcore_grok_prstatus()
8142 if (elf_tdata (abfd)->core->pid == 0) in elfcore_grok_prstatus()
8143 elf_tdata (abfd)->core->pid = prstat.pr_pid; in elfcore_grok_prstatus()
8152 elf_tdata (abfd)->core->lwpid = prstat.pr_who; in elfcore_grok_prstatus()
8154 elf_tdata (abfd)->core->lwpid = prstat.pr_pid; in elfcore_grok_prstatus()
8169 if (elf_tdata (abfd)->core->signal == 0) in elfcore_grok_prstatus()
8170 elf_tdata (abfd)->core->signal = prstat.pr_cursig; in elfcore_grok_prstatus()
8171 if (elf_tdata (abfd)->core->pid == 0) in elfcore_grok_prstatus()
8172 elf_tdata (abfd)->core->pid = prstat.pr_pid; in elfcore_grok_prstatus()
8181 elf_tdata (abfd)->core->lwpid = prstat.pr_who; in elfcore_grok_prstatus()
8183 elf_tdata (abfd)->core->lwpid = prstat.pr_pid; in elfcore_grok_prstatus()
8381 elf_tdata (abfd)->core->pid = psinfo.pr_pid; in elfcore_grok_psinfo()
8383 elf_tdata (abfd)->core->program in elfcore_grok_psinfo()
8387 elf_tdata (abfd)->core->command in elfcore_grok_psinfo()
8400 elf_tdata (abfd)->core->pid = psinfo.pr_pid; in elfcore_grok_psinfo()
8402 elf_tdata (abfd)->core->program in elfcore_grok_psinfo()
8406 elf_tdata (abfd)->core->command in elfcore_grok_psinfo()
8424 char *command = elf_tdata (abfd)->core->command; in elfcore_grok_psinfo()
8449 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus()
8459 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus()
8489 elf_tdata (abfd)->core->lwpid = lwpstat.pr_lwpid; in elfcore_grok_lwpstatus()
8492 if (elf_tdata (abfd)->core->signal == 0) in elfcore_grok_lwpstatus()
8493 elf_tdata (abfd)->core->signal = lwpstat.pr_cursig; in elfcore_grok_lwpstatus()
8578 elf_tdata (abfd)->core->pid = bfd_get_32 (abfd, note->descdata + 8); in elfcore_grok_win32pstatus()
8580 elf_tdata (abfd)->core->signal = bfd_get_32 (abfd, note->descdata + 12); in elfcore_grok_win32pstatus()
8841 t = elf_tdata (abfd); in elfobj_grok_gnu_build_id()
8872 cur->next = (struct sdt_note *) (elf_tdata (abfd))->sdt_note_head; in elfobj_grok_stapsdt_note_1()
8876 elf_tdata (abfd)->sdt_note_head = cur; in elfobj_grok_stapsdt_note_1()
8912 elf_tdata (abfd)->core->signal in elfcore_grok_netbsd_procinfo()
8916 elf_tdata (abfd)->core->pid in elfcore_grok_netbsd_procinfo()
8920 elf_tdata (abfd)->core->command in elfcore_grok_netbsd_procinfo()
8933 elf_tdata (abfd)->core->lwpid = lwp; in elfcore_grok_netbsd_note()
8996 elf_tdata (abfd)->core->signal in elfcore_grok_openbsd_procinfo()
9000 elf_tdata (abfd)->core->pid in elfcore_grok_openbsd_procinfo()
9004 elf_tdata (abfd)->core->command in elfcore_grok_openbsd_procinfo()
9067 elf_tdata (abfd)->core->pid = bfd_get_32 (abfd, (bfd_byte *) ddata); in elfcore_grok_nto_status()
9078 elf_tdata (abfd)->core->signal = sig; in elfcore_grok_nto_status()
9079 elf_tdata (abfd)->core->lwpid = *tid; in elfcore_grok_nto_status()
9086 elf_tdata (abfd)->core->lwpid = *tid; in elfcore_grok_nto_status()
9134 if (elf_tdata (abfd)->core->lwpid == tid) in elfcore_grok_nto_regs()
9878 memcpy (phdrs, elf_tdata (abfd)->phdr, in bfd_get_elf_phdrs()
10133 && elf_tdata (abfd)->has_gnu_symbols) in _bfd_elf_post_process_headers()