Lines Matching defs:abfd
50 ctf_bfdopen (struct bfd *abfd, int *errp)
59 if ((ctf_asect = bfd_get_section_by_name (abfd, _CTF_SECTION)) == NULL)
64 if (!bfd_malloc_and_get_section (abfd, ctf_asect, &contents))
77 if ((arc = ctf_bfdopen_ctfsect (abfd, &ctfsect, errp)) != NULL)
92 ctf_bfdopen_ctfsect (struct bfd *abfd _libctf_unused_,
125 symhdr = &elf_tdata (abfd)->dynsymtab_hdr;
131 symhdr = &elf_tdata (abfd)->symtab_hdr;
139 if (elf_tdata (abfd) && symhdr && symhdr->sh_size && symhdr->sh_entsize)
148 isymbuf = bfd_elf_get_elf_syms (abfd, symhdr, symcount, 0,
157 if (elf_elfsections (abfd) != NULL
158 && symhdr->sh_link < elf_numsections (abfd))
160 Elf_Internal_Shdr *strhdr = elf_elfsections (abfd)[symhdr->sh_link];
165 if ((strtab = bfd_elf_get_str_section (abfd, symhdr->sh_link)) == NULL)
180 if ((str_asect = bfd_get_section_by_name (abfd, strtab_name)) != NULL)
182 if (bfd_malloc_and_get_section (abfd, str_asect, &str_bcontents))
205 assert (symhdr->sh_entsize == get_elf_backend_data (abfd)->s->sizeof_sym);
213 symsect_endianness = bfd_little_endian (abfd);
254 bfd *abfd;
319 if ((abfd = bfd_fdopenr (filename, target, nfd)) == NULL)
326 bfd_set_cacheable (abfd, 1);
328 if (!bfd_check_format (abfd, bfd_object))
339 if ((arci = ctf_bfdopen (abfd, errp)) == NULL)
341 if (!bfd_close_all_done (abfd))
347 arci->ctfi_abfd = abfd;