Home
last modified time | relevance | path

Searched refs:abfd (Results 1 – 25 of 1025) sorted by relevance

12345678910>>...41

/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dcoffswap.h31 #define GET_FCN_LNNOPTR(abfd, ext) \ argument
32 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
36 #define GET_FCN_ENDNDX(abfd, ext) \ argument
37 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx)
41 #define PUT_FCN_LNNOPTR(abfd, in, ext) \ argument
42 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
45 #define PUT_FCN_ENDNDX(abfd, in, ext) \ argument
46 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx)
49 #define GET_LNSZ_LNNO(abfd, ext) \ argument
50 H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno)
[all …]
H A Dbfdio.c226 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) in bfd_bread() argument
229 bfd *element_bfd = abfd; in bfd_bread()
232 while (abfd->my_archive != NULL in bfd_bread()
233 && !bfd_is_thin_archive (abfd->my_archive)) in bfd_bread()
235 offset += abfd->origin; in bfd_bread()
236 abfd = abfd->my_archive; in bfd_bread()
238 offset += abfd->origin; in bfd_bread()
248 if (abfd->where < offset || abfd->where - offset >= maxbytes) in bfd_bread()
253 if (abfd->where - offset + size > maxbytes) in bfd_bread()
254 size = maxbytes - (abfd->where - offset); in bfd_bread()
[all …]
H A Dformat.c92 bfd_check_format (bfd *abfd, bfd_format format) in bfd_check_format() argument
94 return bfd_check_format_matches (abfd, format, NULL); in bfd_check_format()
122 bfd_preserve_save (bfd *abfd, struct bfd_preserve *preserve, in bfd_preserve_save() argument
125 preserve->tdata = abfd->tdata.any; in bfd_preserve_save()
126 preserve->arch_info = abfd->arch_info; in bfd_preserve_save()
127 preserve->flags = abfd->flags; in bfd_preserve_save()
128 preserve->sections = abfd->sections; in bfd_preserve_save()
129 preserve->section_last = abfd->section_last; in bfd_preserve_save()
130 preserve->section_count = abfd->section_count; in bfd_preserve_save()
132 preserve->section_htab = abfd->section_htab; in bfd_preserve_save()
[all …]
H A Dcache.c129 insert (bfd *abfd) in insert() argument
133 abfd->lru_next = abfd; in insert()
134 abfd->lru_prev = abfd; in insert()
138 abfd->lru_next = bfd_last_cache; in insert()
139 abfd->lru_prev = bfd_last_cache->lru_prev; in insert()
140 abfd->lru_prev->lru_next = abfd; in insert()
141 abfd->lru_next->lru_prev = abfd; in insert()
143 bfd_last_cache = abfd; in insert()
149 snip (bfd *abfd) in snip() argument
151 abfd->lru_prev->lru_next = abfd->lru_next; in snip()
[all …]
H A Dmmo.c460 mmo_make_section (bfd *abfd, const char *secname) in mmo_make_section() argument
462 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section()
473 abfd, secname); in mmo_make_section()
477 sec = bfd_make_section (abfd, newsecname); in mmo_make_section()
500 mmo_object_p (bfd *abfd) in mmo_object_p() argument
507 if (bfd_stat (abfd, &statbuf) < 0 in mmo_object_p()
508 || bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 in mmo_object_p()
509 || bfd_bread (b, 4, abfd) != 4) in mmo_object_p()
519 if (bfd_seek (abfd, (file_ptr) statbuf.st_size - 4, SEEK_SET) != 0 in mmo_object_p()
520 || bfd_bread (b, 4, abfd) != 4) in mmo_object_p()
[all …]
H A Decoffswap.h99 ecoff_swap_hdr_in (bfd *abfd, void * ext_copy, HDRR *intern) in ecoff_swap_hdr_in() argument
105 intern->magic = H_GET_S16 (abfd, ext->h_magic); in ecoff_swap_hdr_in()
106 intern->vstamp = H_GET_S16 (abfd, ext->h_vstamp); in ecoff_swap_hdr_in()
107 intern->ilineMax = H_GET_32 (abfd, ext->h_ilineMax); in ecoff_swap_hdr_in()
108 intern->cbLine = ECOFF_GET_OFF (abfd, ext->h_cbLine); in ecoff_swap_hdr_in()
109 intern->cbLineOffset = ECOFF_GET_OFF (abfd, ext->h_cbLineOffset); in ecoff_swap_hdr_in()
110 intern->idnMax = H_GET_32 (abfd, ext->h_idnMax); in ecoff_swap_hdr_in()
111 intern->cbDnOffset = ECOFF_GET_OFF (abfd, ext->h_cbDnOffset); in ecoff_swap_hdr_in()
112 intern->ipdMax = H_GET_32 (abfd, ext->h_ipdMax); in ecoff_swap_hdr_in()
113 intern->cbPdOffset = ECOFF_GET_OFF (abfd, ext->h_cbPdOffset); in ecoff_swap_hdr_in()
[all …]
H A Delf.c56 static bool elf_parse_notes (bfd *abfd, char *buf, size_t size,
66 _bfd_elf_swap_verdef_in (bfd *abfd, in _bfd_elf_swap_verdef_in() argument
70 dst->vd_version = H_GET_16 (abfd, src->vd_version); in _bfd_elf_swap_verdef_in()
71 dst->vd_flags = H_GET_16 (abfd, src->vd_flags); in _bfd_elf_swap_verdef_in()
72 dst->vd_ndx = H_GET_16 (abfd, src->vd_ndx); in _bfd_elf_swap_verdef_in()
73 dst->vd_cnt = H_GET_16 (abfd, src->vd_cnt); in _bfd_elf_swap_verdef_in()
74 dst->vd_hash = H_GET_32 (abfd, src->vd_hash); in _bfd_elf_swap_verdef_in()
75 dst->vd_aux = H_GET_32 (abfd, src->vd_aux); in _bfd_elf_swap_verdef_in()
76 dst->vd_next = H_GET_32 (abfd, src->vd_next); in _bfd_elf_swap_verdef_in()
82 _bfd_elf_swap_verdef_out (bfd *abfd, in _bfd_elf_swap_verdef_out() argument
[all …]
H A Dlibcoff.h205 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data) argument
227 #define xcoff_section_data(abfd, sec) \ argument
228 ((struct xcoff_section_tdata *) coff_section_data ((abfd), (sec))->tdata)
241 #define pei_section_data(abfd, sec) \ argument
242 ((struct pei_section_tdata *) coff_section_data ((abfd), (sec))->tdata)
291 bfd * abfd; member
765 (bfd *abfd, void *, void *);
841 #define coff_backend_info(abfd) \ argument
842 ((bfd_coff_backend_data *) (abfd)->xvec->backend_data)
853 #define bfd_coff_swap_reloc_out(abfd, i, o) \ argument
[all …]
H A Dopncls.c124 _bfd_delete_bfd (bfd *abfd) in _bfd_delete_bfd() argument
126 if (abfd->memory) in _bfd_delete_bfd()
128 bfd_hash_table_free (&abfd->section_htab); in _bfd_delete_bfd()
129 objalloc_free ((struct objalloc *) abfd->memory); in _bfd_delete_bfd()
132 free ((char *) bfd_get_filename (abfd)); in _bfd_delete_bfd()
134 free (abfd->arelt_data); in _bfd_delete_bfd()
135 free (abfd); in _bfd_delete_bfd()
141 _bfd_free_cached_info (bfd *abfd) in _bfd_free_cached_info() argument
143 if (abfd->memory) in _bfd_free_cached_info()
145 const char *filename = bfd_get_filename (abfd); in _bfd_free_cached_info()
[all …]
H A Dpdp11.c138 #define WRITE_HEADERS(abfd, execp) pdp11_aout_write_headers (abfd, execp) argument
300 NAME (aout, reloc_type_lookup) (bfd * abfd ATTRIBUTE_UNUSED, in NAME()
317 NAME (aout, reloc_name_lookup) (bfd *abfd ATTRIBUTE_UNUSED, in NAME()
346 pdp11_aout_write_headers (bfd *abfd, struct internal_exec *execp) in pdp11_aout_write_headers() argument
350 if (adata(abfd).magic == undecided_magic) in pdp11_aout_write_headers()
351 NAME (aout, adjust_sizes_and_vmas) (abfd); in pdp11_aout_write_headers()
353 execp->a_syms = bfd_get_symcount (abfd) * EXTERNAL_NLIST_SIZE; in pdp11_aout_write_headers()
354 execp->a_entry = bfd_get_start_address (abfd); in pdp11_aout_write_headers()
356 if (obj_textsec (abfd)->reloc_count > 0 in pdp11_aout_write_headers()
357 || obj_datasec (abfd)->reloc_count > 0) in pdp11_aout_write_headers()
[all …]
H A Dcoff-stgo32.c77 #define _H(index) (H_GET_16 (abfd, (header + index * 2)))
107 go32exe_create_stub (bfd *abfd) in go32exe_create_stub() argument
110 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
123 coff_data (abfd)->stub = bfd_alloc (abfd, in go32exe_create_stub()
125 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
127 memcpy (coff_data (abfd)->stub, go32exe_temp_stub, in go32exe_create_stub()
129 coff_data (abfd)->stub_size = go32exe_temp_stub_size; in go32exe_create_stub()
185 coff_data (abfd)->stub = bfd_alloc (abfd, (bfd_size_type) coff_start); in go32exe_create_stub()
186 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
192 if ((unsigned long) read (f, coff_data (abfd)->stub, coff_start) in go32exe_create_stub()
[all …]
H A Dmach-o.c42 bfd_mach_o_read_dyld_content (bfd *abfd, bfd_mach_o_dyld_info_command *cmd);
45 bfd_mach_o_version (bfd *abfd) in bfd_mach_o_version() argument
49 BFD_ASSERT (bfd_mach_o_valid (abfd)); in bfd_mach_o_version()
50 mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_version()
56 bfd_mach_o_valid (bfd *abfd) in bfd_mach_o_valid() argument
58 if (abfd == NULL || abfd->xvec == NULL) in bfd_mach_o_valid()
61 if (abfd->xvec->flavour != bfd_target_mach_o_flavour) in bfd_mach_o_valid()
64 if (bfd_mach_o_get_data (abfd) == NULL) in bfd_mach_o_valid()
85 bfd_mach_o_wide_p (bfd *abfd) in bfd_mach_o_wide_p() argument
87 return mach_o_wide_p (&bfd_mach_o_get_data (abfd)->header); in bfd_mach_o_wide_p()
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dcoffswap.h31 #define GET_FCN_LNNOPTR(abfd, ext) \ argument
32 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
36 #define GET_FCN_ENDNDX(abfd, ext) \ argument
37 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx)
41 #define PUT_FCN_LNNOPTR(abfd, in, ext) \ argument
42 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
45 #define PUT_FCN_ENDNDX(abfd, in, ext) \ argument
46 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx)
49 #define GET_LNSZ_LNNO(abfd, ext) \ argument
50 H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno)
[all …]
H A Dbfdio.c246 bfd_read (void *ptr, bfd_size_type size, bfd *abfd) in bfd_read() argument
249 bfd *element_bfd = abfd; in bfd_read()
252 while (abfd->my_archive != NULL in bfd_read()
253 && !bfd_is_thin_archive (abfd->my_archive)) in bfd_read()
255 offset += abfd->origin; in bfd_read()
256 abfd = abfd->my_archive; in bfd_read()
258 offset += abfd->origin; in bfd_read()
268 if (abfd->where < offset || abfd->where - offset >= maxbytes) in bfd_read()
273 if (abfd->where - offset + size > maxbytes) in bfd_read()
274 size = maxbytes - (abfd->where - offset); in bfd_read()
[all …]
H A Dformat.c92 bfd_check_format (bfd *abfd, bfd_format format) in bfd_check_format() argument
94 return bfd_check_format_matches (abfd, format, NULL); in bfd_check_format()
127 bfd_preserve_save (bfd *abfd, struct bfd_preserve *preserve, in bfd_preserve_save() argument
130 preserve->tdata = abfd->tdata.any; in bfd_preserve_save()
131 preserve->arch_info = abfd->arch_info; in bfd_preserve_save()
132 preserve->flags = abfd->flags; in bfd_preserve_save()
133 preserve->iovec = abfd->iovec; in bfd_preserve_save()
134 preserve->iostream = abfd->iostream; in bfd_preserve_save()
135 preserve->sections = abfd->sections; in bfd_preserve_save()
136 preserve->section_last = abfd->section_last; in bfd_preserve_save()
[all …]
H A Dcache.c52 static FILE *_bfd_open_file_unlocked (bfd *abfd);
131 insert (bfd *abfd) in insert() argument
135 abfd->lru_next = abfd; in insert()
136 abfd->lru_prev = abfd; in insert()
140 abfd->lru_next = bfd_last_cache; in insert()
141 abfd->lru_prev = bfd_last_cache->lru_prev; in insert()
142 abfd->lru_prev->lru_next = abfd; in insert()
143 abfd->lru_next->lru_prev = abfd; in insert()
145 bfd_last_cache = abfd; in insert()
151 snip (bfd *abfd) in snip() argument
[all …]
H A Dmmo.c460 mmo_make_section (bfd *abfd, const char *secname) in mmo_make_section() argument
462 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section()
467 char *newsecname = bfd_alloc (abfd, len); in mmo_make_section()
475 sec = bfd_make_section (abfd, newsecname); in mmo_make_section()
498 mmo_object_p (bfd *abfd) in mmo_object_p() argument
505 if (bfd_stat (abfd, &statbuf) < 0 in mmo_object_p()
506 || bfd_seek (abfd, 0, SEEK_SET) != 0 in mmo_object_p()
507 || bfd_read (b, 4, abfd) != 4) in mmo_object_p()
517 if (bfd_seek (abfd, statbuf.st_size - 4, SEEK_SET) != 0 in mmo_object_p()
518 || bfd_read (b, 4, abfd) != 4) in mmo_object_p()
[all …]
H A Decoffswap.h99 ecoff_swap_hdr_in (bfd *abfd, void * ext_copy, HDRR *intern) in ecoff_swap_hdr_in() argument
105 intern->magic = H_GET_S16 (abfd, ext->h_magic); in ecoff_swap_hdr_in()
106 intern->vstamp = H_GET_S16 (abfd, ext->h_vstamp); in ecoff_swap_hdr_in()
107 intern->ilineMax = H_GET_32 (abfd, ext->h_ilineMax); in ecoff_swap_hdr_in()
108 intern->cbLine = ECOFF_GET_OFF (abfd, ext->h_cbLine); in ecoff_swap_hdr_in()
109 intern->cbLineOffset = ECOFF_GET_OFF (abfd, ext->h_cbLineOffset); in ecoff_swap_hdr_in()
110 intern->idnMax = H_GET_32 (abfd, ext->h_idnMax); in ecoff_swap_hdr_in()
111 intern->cbDnOffset = ECOFF_GET_OFF (abfd, ext->h_cbDnOffset); in ecoff_swap_hdr_in()
112 intern->ipdMax = H_GET_32 (abfd, ext->h_ipdMax); in ecoff_swap_hdr_in()
113 intern->cbPdOffset = ECOFF_GET_OFF (abfd, ext->h_cbPdOffset); in ecoff_swap_hdr_in()
[all …]
H A Delf.c56 static bool elf_parse_notes (bfd *abfd, char *buf, size_t size,
66 _bfd_elf_swap_verdef_in (bfd *abfd, in _bfd_elf_swap_verdef_in() argument
70 dst->vd_version = H_GET_16 (abfd, src->vd_version); in _bfd_elf_swap_verdef_in()
71 dst->vd_flags = H_GET_16 (abfd, src->vd_flags); in _bfd_elf_swap_verdef_in()
72 dst->vd_ndx = H_GET_16 (abfd, src->vd_ndx); in _bfd_elf_swap_verdef_in()
73 dst->vd_cnt = H_GET_16 (abfd, src->vd_cnt); in _bfd_elf_swap_verdef_in()
74 dst->vd_hash = H_GET_32 (abfd, src->vd_hash); in _bfd_elf_swap_verdef_in()
75 dst->vd_aux = H_GET_32 (abfd, src->vd_aux); in _bfd_elf_swap_verdef_in()
76 dst->vd_next = H_GET_32 (abfd, src->vd_next); in _bfd_elf_swap_verdef_in()
82 _bfd_elf_swap_verdef_out (bfd *abfd, in _bfd_elf_swap_verdef_out() argument
[all …]
H A Dlibcoff.h231 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data) argument
253 #define xcoff_section_data(abfd, sec) \ argument
254 ((struct xcoff_section_tdata *) coff_section_data ((abfd), (sec))->tdata)
267 #define pei_section_data(abfd, sec) \ argument
268 ((struct pei_section_tdata *) coff_section_data ((abfd), (sec))->tdata)
320 bfd * abfd; member
807 (bfd *abfd, void *, void *);
883 #define coff_backend_info(abfd) \ argument
884 ((const bfd_coff_backend_data *) (abfd)->xvec->backend_data)
895 #define bfd_coff_swap_reloc_out(abfd, i, o) \ argument
[all …]
H A Dcoff-stgo32.c77 #define _H(index) (H_GET_16 (abfd, (header + index * 2)))
107 go32exe_create_stub (bfd *abfd) in go32exe_create_stub() argument
110 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
123 coff_data (abfd)->stub = bfd_alloc (abfd, in go32exe_create_stub()
125 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
127 memcpy (coff_data (abfd)->stub, go32exe_temp_stub, in go32exe_create_stub()
129 coff_data (abfd)->stub_size = go32exe_temp_stub_size; in go32exe_create_stub()
185 coff_data (abfd)->stub = bfd_alloc (abfd, (bfd_size_type) coff_start); in go32exe_create_stub()
186 if (coff_data (abfd)->stub == NULL) in go32exe_create_stub()
192 if ((unsigned long) read (f, coff_data (abfd)->stub, coff_start) in go32exe_create_stub()
[all …]
H A Dpdp11.c138 #define WRITE_HEADERS(abfd, execp) pdp11_aout_write_headers (abfd, execp) argument
300 NAME (aout, reloc_type_lookup) (bfd * abfd ATTRIBUTE_UNUSED, in NAME()
317 NAME (aout, reloc_name_lookup) (bfd *abfd ATTRIBUTE_UNUSED, in NAME()
346 pdp11_aout_write_headers (bfd *abfd, struct internal_exec *execp) in pdp11_aout_write_headers() argument
350 if (adata(abfd).magic == undecided_magic) in pdp11_aout_write_headers()
351 NAME (aout, adjust_sizes_and_vmas) (abfd); in pdp11_aout_write_headers()
353 execp->a_syms = bfd_get_symcount (abfd) * EXTERNAL_NLIST_SIZE; in pdp11_aout_write_headers()
354 execp->a_entry = bfd_get_start_address (abfd); in pdp11_aout_write_headers()
356 if (obj_textsec (abfd)->reloc_count > 0 in pdp11_aout_write_headers()
357 || obj_datasec (abfd)->reloc_count > 0) in pdp11_aout_write_headers()
[all …]
H A Delfcode.h174 elf_swap_symbol_in (bfd *abfd, in elf_swap_symbol_in() argument
181 int signed_vma = get_elf_backend_data (abfd)->sign_extend_vma; in elf_swap_symbol_in()
183 dst->st_name = H_GET_32 (abfd, src->st_name); in elf_swap_symbol_in()
185 dst->st_value = H_GET_SIGNED_WORD (abfd, src->st_value); in elf_swap_symbol_in()
187 dst->st_value = H_GET_WORD (abfd, src->st_value); in elf_swap_symbol_in()
188 dst->st_size = H_GET_WORD (abfd, src->st_size); in elf_swap_symbol_in()
189 dst->st_info = H_GET_8 (abfd, src->st_info); in elf_swap_symbol_in()
190 dst->st_other = H_GET_8 (abfd, src->st_other); in elf_swap_symbol_in()
191 dst->st_shndx = H_GET_16 (abfd, src->st_shndx); in elf_swap_symbol_in()
196 dst->st_shndx = H_GET_32 (abfd, shndx->est_shndx); in elf_swap_symbol_in()
[all …]
H A Dmach-o.c42 bfd_mach_o_read_dyld_content (bfd *abfd, bfd_mach_o_dyld_info_command *cmd);
45 bfd_mach_o_version (bfd *abfd) in bfd_mach_o_version() argument
49 BFD_ASSERT (bfd_mach_o_valid (abfd)); in bfd_mach_o_version()
50 mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_version()
56 bfd_mach_o_valid (bfd *abfd) in bfd_mach_o_valid() argument
58 if (abfd == NULL || abfd->xvec == NULL) in bfd_mach_o_valid()
61 if (abfd->xvec->flavour != bfd_target_mach_o_flavour) in bfd_mach_o_valid()
64 if (bfd_mach_o_get_data (abfd) == NULL) in bfd_mach_o_valid()
85 bfd_mach_o_wide_p (bfd *abfd) in bfd_mach_o_wide_p() argument
87 return mach_o_wide_p (&bfd_mach_o_get_data (abfd)->header); in bfd_mach_o_wide_p()
[all …]
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dod-pe.c225 pe_filter (bfd *abfd) in pe_filter() argument
227 return bfd_get_flavour (abfd) == bfd_target_coff_flavour; in pe_filter()
264 dump_pe_file_header (bfd * abfd, in dump_pe_file_header() argument
281 data = bfd_h_get_16 (abfd, fhdr->e_cblp); in dump_pe_file_header()
284 data = bfd_h_get_16 (abfd, fhdr->e_cp); in dump_pe_file_header()
287 data = bfd_h_get_16 (abfd, fhdr->e_crlc); in dump_pe_file_header()
290 data = bfd_h_get_16 (abfd, fhdr->e_cparhdr); in dump_pe_file_header()
293 data = bfd_h_get_16 (abfd, fhdr->e_minalloc); in dump_pe_file_header()
296 data = bfd_h_get_16 (abfd, fhdr->e_maxalloc); in dump_pe_file_header()
299 data = bfd_h_get_16 (abfd, fhdr->e_ss); in dump_pe_file_header()
[all …]

12345678910>>...41