Searched refs:abfd (Results 1 - 25 of 307) sorted by path

1234567891011>>

/haiku-fatelf/src/bin/gdb/bfd/
H A Daix386-core.c71 aix386_core_file_p (abfd)
72 bfd *abfd;
85 if (bfd_bread ((PTR) longbuf, amt, abfd) != amt)
95 if (bfd_seek (abfd, (file_ptr) 0, 0) != 0)
99 mergem = (struct mergem *) bfd_zalloc (abfd, amt);
105 if ((bfd_bread ((PTR) core, core_size, abfd)) != core_size)
110 bfd_release (abfd, (char *) mergem);
111 abfd->tdata.any = NULL;
112 bfd_section_list_clear (abfd);
116 set_tdata (abfd,
[all...]
H A Daix5ppc-core.c47 #define core_hdr(abfd) ((struct core_dumpxx *) abfd->tdata.any)
53 xcoff64_core_p (abfd)
54 bfd *abfd;
66 if (bfd_seek (abfd, 0, SEEK_SET) != 0)
70 != bfd_bread (&core, sizeof (struct core_dumpxx), abfd))
73 if (bfd_stat (abfd, &statbuf) < 0)
115 bfd_zalloc (abfd, sizeof (struct core_dumpxx));
120 core_hdr(abfd) = (char *)new_core_hdr;
123 sec = bfd_make_section_anyway (abfd, "
[all...]
H A Daout-adobe.c38 PARAMS ((bfd *abfd));
42 PARAMS ((bfd *abfd, sec_ptr sect));
63 aout_adobe_swap_exec_header_in (abfd, raw_bytes, execp)
64 bfd *abfd;
71 execp->a_info = H_GET_32 (abfd, bytes->e_info);
72 execp->a_text = GET_WORD (abfd, bytes->e_text);
73 execp->a_data = GET_WORD (abfd, bytes->e_data);
74 execp->a_bss = GET_WORD (abfd, bytes->e_bss);
75 execp->a_syms = GET_WORD (abfd, bytes->e_syms);
76 execp->a_entry = GET_WORD (abfd, byte
[all...]
H A Daout-arm.c112 MY(reloc_howto) (abfd, rel, r_index, r_extern, r_pcrel)
113 bfd *abfd;
125 if (bfd_header_big_endian (abfd))
158 MY(put_reloc) (abfd, r_extern, r_index, value, howto, reloc)
159 bfd *abfd;
170 PUT_WORD (abfd, value, reloc->r_address);
181 if (bfd_header_big_endian (abfd))
209 MY(relocatable_reloc) (howto, abfd, reloc, amount, r_addr)
211 bfd *abfd;
219 & (bfd_header_big_endian (abfd)
[all...]
H A Daout-cris.c45 adata(abfd).exec_bytes_size is not used, but rather
46 adata(abfd).zmagic_disk_block_size, even though the exec_header is
124 MY(write_object_contents) (abfd)
125 bfd *abfd;
128 struct internal_exec *execp = exec_hdr (abfd);
134 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE;
138 if (bfd_get_arch(abfd) == bfd_arch_cris)
141 N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags);
143 WRITE_HEADERS (abfd, execp);
153 MY(swap_ext_reloc_out) (abfd,
[all...]
H A Daout-encap.c40 encap_object_p (abfd)
41 bfd *abfd;
50 if (bfd_bread ((PTR) magicbuf, amt, abfd) != amt)
57 coff_magic = H_GET_16 (abfd, magicbuf);
61 magic = H_GET_32 (abfd, magicbuf);
66 if (bfd_seek (abfd, (file_ptr) sizeof (struct coffheader), SEEK_SET) != 0)
70 if (bfd_bread ((PTR) &exec_bytes, amt, abfd) != amt)
76 NAME(aout,swap_exec_header_in) (abfd, &exec_bytes, &exec);
78 return aout_32_some_aout_object_p (abfd, &exec, encap_realcallback);
83 encap_real_callback (abfd)
[all...]
H A Daout-ns32k.c33 PARAMS((bfd *abfd AND
38 PARAMS((bfd *abfd));
163 MY(reloc_howto) (abfd, rel, r_index, r_extern, r_pcrel)
164 bfd *abfd ATTRIBUTE_UNUSED;
173 /* BFD_ASSERT(bfd_header_little_endian (abfd)); */
190 MY(put_reloc) (abfd, r_extern, r_index, value, howto, reloc)
191 bfd *abfd;
202 PUT_WORD (abfd, value, reloc->r_address);
207 /* BFD_ASSERT (bfd_header_little_endian (abfd)); */
229 MY(bfd_reloc_type_lookup) (abfd,cod
[all...]
H A Daout-target.h41 MY(callback) (abfd)
42 bfd *abfd; variable
44 struct internal_exec *execp = exec_hdr (abfd);
49 obj_textsec (abfd)->size = N_TXTSIZE(*execp);
52 obj_textsec (abfd)->vma = N_TXTADDR(*execp);
53 obj_datasec (abfd)->vma = N_DATADDR(*execp);
54 obj_bsssec (abfd)->vma = N_BSSADDR(*execp);
59 if (aout_backend_info (abfd)->entry_is_text_address
60 && execp->a_entry > obj_textsec (abfd)->vma)
64 adjust = execp->a_entry - obj_textsec (abfd)
86 obj_sym_filepos (abfd) = N_SYMOFF (*execp); variable
87 obj_str_filepos (abfd) = N_STROFF (*execp); variable
144 bfd *abfd; variable
208 bfd *abfd; variable
258 bfd *abfd; variable
263 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; variable
278 bfd *abfd; variable
359 bfd *abfd; variable
382 bfd *abfd; variable
[all...]
H A Daout-tic30.c175 tic30_aout_reloc_type_lookup (abfd, code)
176 bfd *abfd ATTRIBUTE_UNUSED;
198 tic30_aout_reloc_howto (abfd, relocs, r_index, r_extern, r_pcrel)
199 bfd *abfd;
210 if (bfd_header_big_endian (abfd))
236 tic30_aout_fix_16 (abfd, reloc_entry, symbol, data, input_section, output_bfd, error_message)
237 bfd *abfd;
253 relocation += bfd_get_16 (abfd, (bfd_byte *) data + reloc_entry->address);
254 bfd_put_16 (abfd, relocation, (bfd_byte *) data + reloc_entry->address);
262 tic30_aout_fix_32 (abfd, reloc_entr
[all...]
H A Daoutf1.h124 sunos_set_arch_mach (abfd, machtype)
125 bfd *abfd; variable
189 bfd_set_arch_mach (abfd, arch, machine);
198 choose_reloc_size (abfd)
199 bfd *abfd; variable
201 switch (bfd_get_arch (abfd))
205 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; variable
208 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; variable
220 sunos_write_object_contents (abfd)
221 bfd *abfd; variable
268 choose_reloc_size (abfd); variable
429 bfd *abfd; variable
466 bfd *abfd; variable
525 bfd *abfd; variable
608 bfd *abfd; variable
654 bfd_section_list_clear (abfd); variable
682 core_stacksec (abfd) = bfd_make_section_anyway (abfd, ".stack"); variable
731 bfd *abfd; variable
738 bfd *abfd; variable
766 bfd *abfd; variable
[all...]
H A Daoutx.h279 NAME(aout,reloc_type_lookup) (abfd,code)
280 bfd *abfd; variable
285 int ext = obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE;
288 switch (bfd_get_arch_info (abfd)->bits_per_address)
352 (bfd *abfd,
364 NAME(aout,swap_exec_header_in) (abfd, raw_bytes, execp)
365 bfd *abfd; variable
377 execp->a_info = H_GET_32 (abfd, bytes->e_info);
378 execp->a_text = GET_WORD (abfd, bytes->e_text);
379 execp->a_data = GET_WORD (abfd, byte
405 bfd *abfd; variable
426 bfd *abfd; variable
459 bfd *abfd; variable
522 bfd_get_start_address (abfd) = execp->a_entry; variable
524 obj_aout_symbols (abfd) = (aout_symbol_type *)NULL; variable
525 bfd_get_symcount (abfd) = execp->a_syms / sizeof (struct external_nlist); variable
528 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; variable
531 obj_symbol_entry_size (abfd) = EXTERNAL_NLIST_SIZE; variable
537 obj_aout_external_syms (abfd) = NULL; variable
538 obj_aout_external_strings (abfd) = NULL; variable
539 obj_aout_sym_hashes (abfd) = NULL; variable
587 obj_str_filepos (abfd) = N_STROFF (*execp); variable
588 obj_sym_filepos (abfd) = N_SYMOFF (*execp); variable
685 bfd *abfd; variable
697 exec_hdr (abfd) = &(rawptr->e); variable
699 obj_textsec (abfd) = (asection *) NULL; variable
700 obj_datasec (abfd) = (asection *) NULL; variable
701 obj_bsssec (abfd) = (asection *) NULL; variable
865 bfd *abfd; variable
887 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; variable
890 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; variable
899 bfd *abfd; variable
967 bfd *abfd; variable
1085 bfd *abfd; variable
1128 bfd *abfd; variable
1233 bfd *abfd; variable
1243 obj_textsec (abfd)= newsect; variable
1250 obj_datasec (abfd) = newsect; variable
1257 obj_bsssec (abfd) = newsect; variable
1269 bfd *abfd; variable
1300 bfd_get_filename (abfd), bfd_get_section_name (abfd, section)); variable
1320 bfd *abfd; variable
1354 obj_aout_external_syms (abfd) = syms; variable
1355 obj_aout_external_sym_count (abfd) = count; variable
1397 obj_aout_external_strings (abfd) = strings; variable
1398 obj_aout_external_string_size (abfd) = stringsize; variable
1411 bfd *abfd; variable
1666 bfd *abfd; variable
1687 bfd_get_filename (abfd), variable
1721 bfd_get_filename (abfd), bfd_get_section_name (abfd, sec)); variable
1779 bfd *abfd; variable
1794 bfd *abfd; variable
1846 bfd *abfd; variable
1880 bfd_get_symcount (abfd) = obj_aout_external_sym_count (abfd); variable
1882 obj_aout_symbols (abfd) = cached; variable
1896 obj_aout_external_syms (abfd) = NULL; variable
1921 bfd *abfd; variable
1956 register bfd *abfd; variable
1972 bfd *abfd; variable
2033 bfd *abfd; variable
2058 bfd *abfd; variable
2153 bfd *abfd; variable
2267 bfd *abfd; variable
2323 bfd *abfd; variable
[all...]
H A Darchive.c142 #define BFD_GNU960_ARMAG(abfd) (BFD_COFF_FILE_P((abfd)) ? ARMAG : ARMAGB)
157 #define ar_padchar(abfd) ((abfd)->xvec->ar_pad_char)
158 #define ar_maxnamelen(abfd) ((abfd)->xvec->ar_max_namelen)
166 _bfd_generic_mkarchive (bfd *abfd)
170 abfd->tdata.aout_ar_data = bfd_zalloc (abfd, amt);
171 if (bfd_ardata (abfd)
165 _bfd_generic_mkarchive(bfd *abfd) argument
205 bfd_get_next_mapent(bfd *abfd, symindex prev, carsym **entry) argument
323 _bfd_generic_read_ar_hdr(bfd *abfd) argument
332 _bfd_generic_read_ar_hdr_mag(bfd *abfd, const char *mag) argument
510 _bfd_generic_get_elt_at_index(bfd *abfd, symindex index) argument
571 bfd_generic_archive_p(bfd *abfd) argument
684 do_slurp_bsd_armap(bfd *abfd) argument
754 do_slurp_coff_armap(bfd *abfd) argument
878 bfd_slurp_armap(bfd *abfd) argument
920 bfd_slurp_bsd_armap_f2(bfd *abfd) argument
1028 _bfd_slurp_extended_name_table(bfd *abfd) argument
1108 normalize(bfd *abfd, const char *file) argument
1166 _bfd_archive_bsd_construct_extended_name_table(bfd *abfd, char **tabloc, bfd_size_type *tablen, const char **name) argument
1178 _bfd_archive_coff_construct_extended_name_table(bfd *abfd, char **tabloc, bfd_size_type *tablen, const char **name) argument
1196 _bfd_construct_extended_name_table(bfd *abfd, bfd_boolean trailing_slash, char **tabloc, bfd_size_type *tablen) argument
1339 bfd_ar_hdr_from_filesystem(bfd *abfd, const char *filename, bfd *member) argument
1419 bfd_special_undocumented_glue(bfd *abfd, const char *filename) argument
1430 bfd_generic_stat_arch_elt(bfd *abfd, struct stat *buf) argument
1485 bfd_dont_truncate_arname(bfd *abfd, const char *pathname, char *arhdr) argument
1522 bfd_bsd_truncate_arname(bfd *abfd, const char *pathname, char *arhdr) argument
1570 bfd_gnu_truncate_arname(bfd *abfd, const char *pathname, char *arhdr) 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 Darchures.c513 const char *bfd_printable_name (bfd *abfd);
522 bfd_printable_name (bfd *abfd) argument
524 return abfd->arch_info->printable_name;
617 (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
628 bfd_arch_get_compatible (const bfd *abfd, argument
635 if (((ubfd = abfd) && ubfd->arch_info->arch == bfd_arch_unknown)
650 return abfd->arch_info->compatible (abfd->arch_info, bbfd->arch_info);
679 void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
682 Set the architecture info of @var{abfd} t
686 bfd_set_arch_info(bfd *abfd, const bfd_arch_info_type *arg) argument
707 bfd_default_set_arch_mach(bfd *abfd, enum bfd_architecture arch, unsigned long mach) argument
733 bfd_get_arch(bfd *abfd) argument
751 bfd_get_mach(bfd *abfd) argument
769 bfd_arch_bits_per_byte(bfd *abfd) argument
787 bfd_arch_bits_per_address(bfd *abfd) argument
1057 bfd_get_arch_info(bfd *abfd) argument
1135 bfd_octets_per_byte(bfd *abfd) argument
[all...]
H A Darmnetbsd.c49 PARAMS ((bfd * abfd AND
H A Dbfd-in.h165 #define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
284 bfd *abfd;
499 #define bfd_get_filename(abfd) ((char *) (abfd)->filename)
500 #define bfd_get_cacheable(abfd) ((abfd)->cacheable)
501 #define bfd_get_format(abfd) ((abfd)->format)
502 #define bfd_get_target(abfd) ((abf
282 bfd *abfd; member in union:orl::__anon3549
[all...]
H A Dbfd-in2.h172 #define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
291 bfd *abfd;
506 #define bfd_get_filename(abfd) ((char *) (abfd)->filename)
507 #define bfd_get_cacheable(abfd) ((abfd)->cacheable)
508 #define bfd_get_format(abfd) ((abfd)->format)
509 #define bfd_get_target(abfd) ((abf
289 bfd *abfd; member in union:orl::__anon3551
[all...]
H A Dbfd.c482 bfd *abfd = va_arg (ap, bfd *);
483 if (abfd->my_archive)
485 abfd->my_archive->filename, abfd->filename);
487 snprintf (bufp, avail, "%s", abfd->filename);
492 bfd *abfd = sec->owner;
496 if (abfd != NULL
497 && bfd_get_flavour (abfd) == bfd_target_elf_flavour
501 else if (abfd != NULL
502 && bfd_get_flavour (abfd)
480 bfd *abfd = va_arg (ap, bfd *); local
490 bfd *abfd = sec->owner; local
647 bfd_get_reloc_upper_bound(bfd *abfd, sec_ptr asect) argument
680 bfd_canonicalize_reloc(bfd *abfd, sec_ptr asect, arelent **location, asymbol **symbols) argument
741 bfd_set_file_flags(bfd *abfd, flagword flags) argument
811 bfd_get_arch_size(bfd *abfd) argument
841 bfd_get_sign_extend_vma(bfd *abfd) argument
879 bfd_set_start_address(bfd *abfd, bfd_vma vma) argument
899 bfd_get_gp_size(bfd *abfd) argument
925 bfd_set_gp_size(bfd *abfd, unsigned int i) argument
942 _bfd_get_gp_value(bfd *abfd) argument
960 _bfd_set_gp_value(bfd *abfd, bfd_vma v) argument
1242 bfd_get_relocated_section_contents(bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, bfd_boolean relocatable, asymbol **symbols) argument
1270 bfd_record_phdr(bfd *abfd, unsigned long type, bfd_boolean flags_valid, flagword flags, bfd_boolean at_valid, bfd_vma at, bfd_boolean includes_filehdr, bfd_boolean includes_phdrs, unsigned int count, asection **secs) argument
1313 bfd_sprintf_vma(bfd *abfd, char *buf, bfd_vma value) argument
1322 bfd_fprintf_vma(bfd *abfd, void *stream, bfd_vma value) argument
1347 bfd_alt_mach_code(bfd *abfd, int alternative) argument
1421 bfd_preserve_save(bfd *abfd, struct bfd_preserve *preserve) argument
1459 bfd_preserve_restore(bfd *abfd, struct bfd_preserve *preserve) argument
[all...]
H A Dbfdio.c84 . file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes);
85 . file_ptr (*bwrite) (struct bfd *abfd, const void *ptr,
89 . file_ptr (*btell) (struct bfd *abfd);
92 . int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
93 . int (*bclose) (struct bfd *abfd);
94 . int (*bflush) (struct bfd *abfd);
95 . int (*bstat) (struct bfd *abfd, struct stat *sb);
104 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) argument
108 if ((abfd->flags & BFD_IN_MEMORY) != 0)
113 bim = abfd
139 bfd_bwrite(const void *ptr, bfd_size_type size, bfd *abfd) argument
189 bfd_tell(bfd *abfd) argument
211 bfd_flush(bfd *abfd) argument
224 bfd_stat(bfd *abfd, struct stat *statbuf) argument
245 bfd_seek(bfd *abfd, file_ptr position, int direction) argument
385 bfd_get_mtime(bfd *abfd) argument
436 bfd_get_size(bfd *abfd) argument
[all...]
H A Dbfdwin.c109 bfd_get_file_window (bfd *abfd, argument
121 abfd, (long) offset, (long) size,
142 && (abfd->flags & BFD_IN_MEMORY) == 0)
150 while (abfd->my_archive != NULL)
152 offset += abfd->origin;
153 abfd = abfd->my_archive;
155 f = bfd_cache_lookup (abfd);
231 if (bfd_seek (abfd, offset, SEEK_SET) != 0)
233 i->size = bfd_bread (i->data, size, abfd);
[all...]
H A Dbinary.c64 binary_mkobject (abfd)
65 bfd *abfd ATTRIBUTE_UNUSED;
75 binary_object_p (abfd)
76 bfd *abfd;
81 if (abfd->target_defaulted)
87 abfd->symcount = BIN_SYMS;
90 if (bfd_stat (abfd, &statbuf) < 0)
97 sec = bfd_make_section (abfd, ".data");
105 abfd->tdata.any = (PTR) sec;
107 if (bfd_get_arch_info (abfd) !
[all...]
H A Dbout.c34 PARAMS ((bfd *abfd, asection *input_section, arelent *r,
37 PARAMS ((bfd *abfd, unsigned int slip, asection *input_section,
40 PARAMS ((bfd *abfd, asection *section));
91 bout_swap_exec_header_in (abfd, raw_bytes, execp)
92 bfd *abfd;
99 execp->a_info = H_GET_32 (abfd, bytes->e_info);
100 execp->a_text = GET_WORD (abfd, bytes->e_text);
101 execp->a_data = GET_WORD (abfd, bytes->e_data);
102 execp->a_bss = GET_WORD (abfd, bytes->e_bss);
103 execp->a_syms = GET_WORD (abfd, byte
[all...]
H A Dcache.c49 cache_btell (struct bfd *abfd) argument
51 return real_ftell (bfd_cache_lookup (abfd));
55 cache_bseek (struct bfd *abfd, file_ptr offset, int whence) argument
57 return real_fseek (bfd_cache_lookup (abfd), offset, whence);
68 cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes) argument
86 nread = read (fileno (bfd_cache_lookup (abfd)), buf, nbytes);
96 nread = fread (buf, 1, nbytes, bfd_cache_lookup (abfd));
100 if (nread < nbytes && ferror (bfd_cache_lookup (abfd)))
110 cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes) argument
112 file_ptr nwrite = fwrite (where, 1, nbytes, bfd_cache_lookup (abfd));
122 cache_bclose(struct bfd *abfd) argument
128 cache_bflush(struct bfd *abfd) argument
137 cache_bstat(struct bfd *abfd, struct stat *sb) argument
201 insert(bfd *abfd) argument
221 snip(bfd *abfd) argument
271 bfd_cache_delete(bfd *abfd) argument
303 bfd_cache_init(bfd *abfd) argument
334 bfd_cache_close(bfd *abfd) argument
389 bfd_open_file(bfd *abfd) argument
473 bfd_cache_lookup_worker(bfd *abfd) argument
[all...]
H A Dcisco-core.c86 cisco_core_file_validate (abfd, crash_info_loc)
87 bfd *abfd;
101 if (bfd_seek (abfd, (file_ptr) crash_info_loc, SEEK_SET) != 0)
104 nread = bfd_bread (buf, (bfd_size_type) 4, abfd);
111 crashinfo_offset = MASK_ADDR (bfd_get_32 (abfd, buf));
113 if (bfd_seek (abfd, (file_ptr) crashinfo_offset, SEEK_SET) != 0)
120 nread = bfd_bread (&crashinfo, (bfd_size_type) sizeof (crashinfo), abfd);
128 if (bfd_stat (abfd, &statbuf) < 0)
134 magic = bfd_get_32 (abfd, crashinfo.magic);
141 version = bfd_get_32 (abfd, crashinf
[all...]
H A Dcoff-a29k.c74 a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
76 bfd *abfd;
130 insn = bfd_get_32 (abfd, hit_data);
158 bfd_put_32 (abfd, (bfd_vma) insn ,hit_data);
161 insn = bfd_get_32 (abfd, hit_data);
165 bfd_put_32 (abfd, (bfd_vma) insn, hit_data);
168 insn = bfd_get_32 (abfd, hit_data);
176 insn = bfd_get_32 (abfd, hit_data);
191 bfd_put_32 (abfd, (bfd_vma) insn, hit_data);
194 insn = bfd_get_8 (abfd, hit_dat
[all...]

Completed in 227 milliseconds

1234567891011>>