Lines Matching refs:abfd
144 bfd *abfd; member
163 static int slurp_symtab(bfd *abfd, struct a2l_data *a2l) in slurp_symtab() argument
170 if ((bfd_get_file_flags(abfd) & HAS_SYMS) == 0) in slurp_symtab()
171 return bfd_error(bfd_get_filename(abfd)); in slurp_symtab()
173 storage = bfd_get_symtab_upper_bound(abfd); in slurp_symtab()
175 storage = bfd_get_dynamic_symtab_upper_bound(abfd); in slurp_symtab()
179 return bfd_error(bfd_get_filename(abfd)); in slurp_symtab()
183 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
185 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
189 return bfd_error(bfd_get_filename(abfd)); in slurp_symtab()
196 static void find_address_in_section(bfd *abfd, asection *section, void *data) in find_address_in_section() argument
207 flags = bfd_get_section_flags(abfd, section); in find_address_in_section()
216 vma = bfd_get_section_vma(abfd, section); in find_address_in_section()
229 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
239 bfd *abfd; in addr2line_init() local
242 abfd = bfd_openr(path, NULL); in addr2line_init()
243 if (abfd == NULL) in addr2line_init()
246 if (!bfd_check_format(abfd, bfd_object)) in addr2line_init()
253 a2l->abfd = abfd; in addr2line_init()
258 if (slurp_symtab(abfd, a2l)) in addr2line_init()
268 bfd_close(abfd); in addr2line_init()
274 if (a2l->abfd) in addr2line_cleanup()
275 bfd_close(a2l->abfd); in addr2line_cleanup()
317 bfd_map_over_sections(a2l->abfd, find_address_in_section, a2l); in addr2line()
328 while (bfd_find_inliner_info(a2l->abfd, &a2l->filename, in addr2line()