Searched defs:abfd (Results 1 - 25 of 177) sorted by relevance

12345678

/freebsd-head/contrib/gdb/gdb/
H A Di386ly-tdep.c63 i386lynx_coff_osabi_sniffer (bfd *abfd)
65 if (strcmp (bfd_get_target (abfd), "coff-i386-lynx") == 0)
61 i386lynx_coff_osabi_sniffer(bfd *abfd) argument
H A Darmnbsd-tdep.c87 arm_netbsd_aout_osabi_sniffer (bfd *abfd) argument
89 if (strcmp (bfd_get_target (abfd), "a.out-arm-netbsd") == 0)
H A Di386-sol2-tdep.c99 i386_sol2_osabi_sniffer (bfd *abfd)
103 if (bfd_get_section_by_name (abfd, ".SUNW_version"))
98 i386_sol2_osabi_sniffer(bfd *abfd) argument
H A Di386bsd-tdep.c138 i386bsd_aout_osabi_sniffer (bfd *abfd)
140 if (strcmp (bfd_get_target (abfd), "a.out-i386-netbsd") == 0)
143 if (strcmp (bfd_get_target (abfd), "a.out-i386-freebsd") == 0)
150 i386bsd_core_osabi_sniffer (bfd *abfd)
152 if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
136 i386bsd_aout_osabi_sniffer(bfd *abfd) argument
148 i386bsd_core_osabi_sniffer(bfd *abfd) argument
H A Dbfd-target.c37 add_to_section_table (struct bfd *abfd, struct bfd_section *asect, argument
44 aflag = bfd_get_section_flags (abfd, asect);
47 if (bfd_section_size (abfd, asect) == 0)
49 pp->end->bfd = abfd;
51 pp->end->addr = bfd_section_vma (abfd, asect);
52 pp->end->endaddr = pp->end->addr + bfd_section_size (abfd, asect);
57 build_target_sections_from_bfd (struct target_ops *targ, struct bfd *abfd) argument
63 count = bfd_count_sections (abfd);
67 bfd_map_over_sections (abfd, add_to_section_table, &cl);
H A Dnlmread.c81 void nlm_symtab_read (bfd *abfd, CORE_ADDR addr,
93 nlm_symtab_read (bfd *abfd, CORE_ADDR addr, struct objfile *objfile) argument
104 storage_needed = bfd_get_symtab_upper_bound (abfd);
106 error ("Can't read symbols from %s: %s", bfd_get_filename (abfd),
112 number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
114 error ("Can't read symbols from %s: %s", bfd_get_filename (abfd),
177 bfd *abfd = objfile->obfd; local
192 nlm_symtab_read (abfd, offset, objfile);
H A Ddsrec.c33 static int make_srec (char *srec, CORE_ADDR targ_addr, bfd * abfd,
54 bfd *abfd; local
64 abfd = bfd_openr (file, 0);
65 if (!abfd)
71 if (bfd_check_format (abfd, bfd_object) == 0)
91 for (s = abfd->sections; s; s = s->next)
95 bfd_vma addr = bfd_get_section_vma (abfd, s) + load_offset;
97 char *section_name = (char *) bfd_get_section_name (abfd, s);
113 numbytes = make_srec (srec, (CORE_ADDR) (addr + i), abfd, s,
154 make_srec (srec, abfd
219 make_srec(char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect, int sectoff, int *maxrecsize, int flags) argument
[all...]
H A Dsolist.h62 bfd *abfd; member in struct:so_list
/freebsd-head/contrib/binutils/bfd/
H A Dcorefile.c42 const char *bfd_core_file_failing_command (bfd *abfd);
46 when it failed and produced the core file @var{abfd}.
51 bfd_core_file_failing_command (bfd *abfd) argument
53 if (abfd->format != bfd_core)
58 return BFD_SEND (abfd, _core_file_failing_command, (abfd));
66 int bfd_core_file_failing_signal (bfd *abfd);
70 generated the file the BFD @var{abfd} is attached to.
74 bfd_core_file_failing_signal (bfd *abfd) argument
76 if (abfd
[all...]
H A Dbfdwin.c110 bfd_get_file_window (bfd *abfd, argument
122 abfd, (long) offset, (long) size,
143 && (abfd->flags & BFD_IN_MEMORY) == 0)
150 while (abfd->my_archive != NULL)
152 offset += abfd->origin;
153 abfd = abfd->my_archive;
157 if (abfd->iostream == NULL
158 && (abfd->iovec == NULL
159 || abfd
[all...]
H A Delfcore.h22 elf_core_file_failing_command (bfd *abfd) argument
24 return elf_tdata (abfd)->core_command;
28 elf_core_file_failing_signal (bfd *abfd) argument
30 return elf_tdata (abfd)->core_signal;
73 elf_core_file_p (bfd *abfd) argument
86 if (bfd_bread (&x_ehdr, sizeof (x_ehdr), abfd) != sizeof (x_ehdr))
108 if (! bfd_big_endian (abfd))
112 if (! bfd_little_endian (abfd))
119 if (!bfd_preserve_save (abfd, &preserve))
122 /* Give abfd a
[all...]
H A Dformat.c57 bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
60 Verify if the file attached to the BFD @var{abfd} is compatible
91 bfd_check_format (bfd *abfd, bfd_format format) argument
93 return bfd_check_format_matches (abfd, format, NULL);
102 (bfd *abfd, bfd_format format, char ***matching);
117 bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) argument
126 if (!bfd_read_p (abfd)
127 || (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
133 if (abfd->format != bfd_unknown)
134 return abfd
391 bfd_set_format(bfd *abfd, bfd_format format) argument
[all...]
H A Di386aout.c51 i386aout_write_object_contents (bfd *abfd) argument
54 struct internal_exec *execp = exec_hdr (abfd);
58 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
60 WRITE_HEADERS (abfd, execp);
H A Dnetbsd.h78 MY (write_object_contents) (bfd *abfd) argument
81 struct internal_exec *execp = exec_hdr (abfd);
86 if (! abfd->output_has_begun)
91 NAME (aout, adjust_sizes_and_vmas) (abfd, & text_size, & text_end);
94 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
97 switch (bfd_get_arch(abfd))
116 WRITE_HEADERS (abfd, execp);
H A Decoffswap.h98 ecoff_swap_hdr_in (bfd *abfd, void * ext_copy, HDRR *intern) argument
104 intern->magic = H_GET_S16 (abfd, ext->h_magic);
105 intern->vstamp = H_GET_S16 (abfd, ext->h_vstamp);
106 intern->ilineMax = H_GET_32 (abfd, ext->h_ilineMax);
107 intern->cbLine = ECOFF_GET_OFF (abfd, ext->h_cbLine);
108 intern->cbLineOffset = ECOFF_GET_OFF (abfd, ext->h_cbLineOffset);
109 intern->idnMax = H_GET_32 (abfd, ext->h_idnMax);
110 intern->cbDnOffset = ECOFF_GET_OFF (abfd, ext->h_cbDnOffset);
111 intern->ipdMax = H_GET_32 (abfd, ext->h_ipdMax);
112 intern->cbPdOffset = ECOFF_GET_OFF (abfd, ex
139 ecoff_swap_hdr_out(bfd *abfd, const HDRR *intern_copy, void * ext_ptr) argument
181 ecoff_swap_fdr_in(bfd *abfd, void * ext_copy, FDR *intern) argument
249 ecoff_swap_fdr_out(bfd *abfd, const FDR *intern_copy, void * ext_ptr) argument
318 ecoff_swap_pdr_in(bfd *abfd, void * ext_copy, PDR *intern) argument
380 ecoff_swap_pdr_out(bfd *abfd, const PDR *intern_copy, void * ext_ptr) argument
440 ecoff_swap_sym_in(bfd *abfd, void * ext_copy, SYMR *intern) argument
494 ecoff_swap_sym_out(bfd *abfd, const SYMR *intern_copy, void * ext_ptr) argument
544 ecoff_swap_ext_in(bfd *abfd, void * ext_copy, EXTR *intern) argument
583 ecoff_swap_ext_out(bfd *abfd, const EXTR *intern_copy, void * ext_ptr) argument
633 ecoff_swap_rfd_in(bfd *abfd, void * ext_ptr, RFDT *intern) argument
648 ecoff_swap_rfd_out(bfd *abfd, const RFDT *intern, void * ext_ptr) argument
663 ecoff_swap_opt_in(bfd *abfd, void * ext_copy, OPTR * intern) argument
701 ecoff_swap_opt_out(bfd *abfd, const OPTR *intern_copy, void * ext_ptr) argument
738 ecoff_swap_dnr_in(bfd *abfd, void * ext_copy, DNR *intern) argument
756 ecoff_swap_dnr_out(bfd *abfd, const DNR *intern_copy, void * ext_ptr) argument
[all...]
H A Delf32-gen.c45 elf_generic_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
53 elf_generic_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
61 check_for_relocs (bfd * abfd, asection * o, void * failed) argument
67 ehdrp = elf_elfheader (abfd);
69 abfd, ehdrp->e_machine);
77 elf32_generic_link_add_symbols (bfd *abfd, struct bfd_link_info *info) argument
82 bfd_map_over_sections (abfd, check_for_relocs, & failed);
86 return bfd_elf_link_add_symbols (abfd, info);
H A Delf64-gen.c45 elf_generic_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
53 elf_generic_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
61 check_for_relocs (bfd * abfd, asection * o, void * failed) argument
67 ehdrp = elf_elfheader (abfd);
69 abfd, ehdrp->e_machine);
77 elf64_generic_link_add_symbols (bfd *abfd, struct bfd_link_info *info) argument
82 bfd_map_over_sections (abfd, check_for_relocs, & failed);
86 return bfd_elf_link_add_symbols (abfd, info);
H A Dfreebsd.h79 MY (bfd_final_link) (bfd *abfd, struct bfd_link_info *info) argument
81 obj_aout_subformat (abfd) = q_magic_format;
82 return NAME(aout,final_link) (abfd, info, MY_final_link_callback);
107 MY (write_object_contents) (bfd *abfd) argument
110 struct internal_exec *execp = exec_hdr (abfd);
112 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
115 switch (bfd_get_arch(abfd))
118 if (strcmp (abfd->xvec->name, "a.out-m68k4k-netbsd") == 0)
137 WRITE_HEADERS(abfd, execp);
H A Dnetbsd-core.c55 netbsd_core_file_p (bfd *abfd) argument
65 val = bfd_bread (&core, amt, abfd);
80 rawptr = (struct netbsd_core_struct *) bfd_zalloc (abfd, amt);
85 abfd->tdata.netbsd_core_data = rawptr;
93 if (bfd_seek (abfd, offset, SEEK_SET) != 0)
96 val = bfd_bread (&coreseg, sizeof coreseg, abfd);
129 asect = bfd_make_section_anyway_with_flags (abfd, sname, flags);
162 asect = bfd_make_section_anyway_with_flags (abfd, ".wcookie",
181 bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0);
185 bfd_default_set_arch_mach (abfd, bfd_arch_ar
239 netbsd_core_file_failing_command(bfd *abfd) argument
246 netbsd_core_file_failing_signal(bfd *abfd) argument
[all...]
H A Dtargets.c1350 const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
1360 set in the BFD if @var{abfd} isn't <<NULL>>. This causes
1366 bfd_find_target (const char *target_name, bfd *abfd)
1383 if (abfd)
1385 abfd->xvec = target;
1386 abfd->target_defaulted = TRUE;
1391 if (abfd)
1392 abfd->target_defaulted = FALSE;
1398 if (abfd)
1399 abfd
1365 bfd_find_target(const char *target_name, bfd *abfd) argument
[all...]
H A Darchive64.c41 bfd_elf64_archive_slurp_armap (bfd *abfd) argument
43 struct artdata *ardata = bfd_ardata (abfd);
57 arhdrpos = bfd_tell (abfd);
58 i = bfd_bread (nextname, 16, abfd);
64 if (bfd_seek (abfd, (file_ptr) - 16, SEEK_CUR) != 0)
69 return bfd_slurp_armap (abfd);
73 bfd_has_map (abfd) = FALSE;
77 mapdata = (struct areltdata *) _bfd_read_ar_hdr (abfd);
81 bfd_release (abfd, mapdata);
83 if (bfd_bread (int_buf, 8, abfd) !
[all...]
H A Dbfdio.c93 . file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes);
94 . file_ptr (*bwrite) (struct bfd *abfd, const void *ptr,
98 . file_ptr (*btell) (struct bfd *abfd);
101 . int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
102 . int (*bclose) (struct bfd *abfd);
103 . int (*bflush) (struct bfd *abfd);
104 . int (*bstat) (struct bfd *abfd, struct stat *sb);
113 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) argument
119 if (abfd->arelt_data != NULL)
121 size_t maxbytes = ((struct areltdata *) abfd
157 bfd_bwrite(const void *ptr, bfd_size_type size, bfd *abfd) argument
207 bfd_tell(bfd *abfd) argument
229 bfd_flush(bfd *abfd) argument
242 bfd_stat(bfd *abfd, struct stat *statbuf) argument
263 bfd_seek(bfd *abfd, file_ptr position, int direction) argument
389 bfd_get_mtime(bfd *abfd) argument
440 bfd_get_size(bfd *abfd) argument
[all...]
H A Dcpu-arm.c222 arm_check_note (bfd *abfd, argument
238 namesz = bfd_get_32 (abfd, buffer);
239 descsz = bfd_get_32 (abfd, buffer + offsetof (arm_Note, descsz));
240 type = bfd_get_32 (abfd, buffer + offsetof (arm_Note, type));
274 bfd_arm_update_notes (bfd *abfd, const char *note_section) argument
285 arm_arch_section = bfd_get_section_by_name (abfd, note_section);
294 if (!bfd_malloc_and_get_section (abfd, arm_arch_section, &buffer))
298 if (! arm_check_note (abfd, buffer, buffer_size, NOTE_ARCH_STRING, & arch_string))
302 switch (bfd_get_mach (abfd))
327 if (! bfd_set_section_contents (abfd, arm_arch_sectio
371 bfd_arm_get_mach_from_notes(bfd *abfd, const char *note_section) argument
[all...]
H A Delf-vxworks.c33 elf_vxworks_gott_symbol_p (bfd *abfd, const char *name) argument
37 leading = bfd_get_symbol_leading_char (abfd);
50 elf_vxworks_add_symbol_hook (bfd *abfd, argument
66 if ((info->shared || abfd->flags & DYNAMIC)
67 && elf_vxworks_gott_symbol_p (abfd, *namep))
140 && elf_vxworks_gott_symbol_p (h->root.u.undef.abfd, name))
211 elf_vxworks_final_write_processing (bfd *abfd, argument
217 sec = bfd_get_section_by_name (abfd, ".rel.plt.unloaded");
219 sec = bfd_get_section_by_name (abfd, ".rela.plt.unloaded");
223 d->this_hdr.sh_link = elf_tdata (abfd)
[all...]
H A Delf32-arc.c36 arc_elf_b22_pcrel (bfd * abfd, argument
53 return bfd_elf_generic_reloc (abfd, reloc_entry, symbol, data,
138 bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
151 bfd_elf32_bfd_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
169 arc_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
183 arc_elf_object_p (bfd *abfd) argument
187 if (elf_elfheader(abfd)->e_machine == EM_ARC)
189 unsigned long arch = elf_elfheader (abfd)->e_flags & EF_ARC_MACH;
208 return bfd_default_set_arch_mach (abfd, bfd_arch_arc, mach);
215 arc_elf_final_write_processing (bfd *abfd, argument
[all...]

Completed in 443 milliseconds

12345678