| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | nlmcode.h | 55 #define nlm_swap_fixed_header_in(abfd,src,dst) \ argument 56 (nlm_swap_fixed_header_in_func(abfd)) (abfd,src,dst) 57 #define nlm_swap_fixed_header_out(abfd,src,dst) \ argument 58 (nlm_swap_fixed_header_out_func(abfd)) (abfd,src,dst) 95 nlm_object_p (abfd) in nlm_object_p() argument 96 bfd *abfd; in nlm_object_p() 98 struct nlm_obj_tdata *preserved_tdata = nlm_tdata (abfd); 109 backend_object_p = nlm_backend_object_p_func (abfd); 112 if (!(*backend_object_p) (abfd)) 117 amt = nlm_fixed_header_size (abfd); [all …]
|
| H A D | cache.c | 98 insert (bfd *abfd) in insert() argument 102 abfd->lru_next = abfd; in insert() 103 abfd->lru_prev = abfd; in insert() 107 abfd->lru_next = bfd_last_cache; in insert() 108 abfd->lru_prev = bfd_last_cache->lru_prev; in insert() 109 abfd->lru_prev->lru_next = abfd; in insert() 110 abfd->lru_next->lru_prev = abfd; in insert() 112 bfd_last_cache = abfd; in insert() 118 snip (bfd *abfd) in snip() argument 120 abfd->lru_prev->lru_next = abfd->lru_next; in snip() [all …]
|
| H A D | vms-tir.c | 45 PARAMS ((bfd *abfd, int psect, uquad offset)); 47 PARAMS ((bfd *abfd, uquad offset)); 49 PARAMS ((bfd *abfd, unsigned char *ptr, int size, int offset)); 51 PARAMS ((bfd *abfd, unsigned int value)); 53 PARAMS ((bfd *abfd, unsigned int value)); 55 PARAMS ((bfd *abfd, unsigned long value)); 57 PARAMS ((bfd *abfd, uquad value)); 89 check_section (abfd, size) in check_section() argument 90 bfd *abfd; in check_section() 117 image_set_ptr (abfd, psect, offset) in image_set_ptr() argument [all …]
|
| H A D | i386os9k.c | 42 os9k_swap_exec_header_in (abfd, raw_bytes, execp) in os9k_swap_exec_header_in() argument 43 bfd *abfd; in os9k_swap_exec_header_in() 51 execp->a_info = H_GET_16 (abfd, bytes->m_sync); 53 execp->a_entry = H_GET_32 (abfd, bytes->m_exec); 58 dload = H_GET_32 (abfd, bytes->m_idata); 61 if (bfd_seek (abfd, (file_ptr) dload, SEEK_SET) != 0 62 || (bfd_bread (&dmemstart, (bfd_size_type) sizeof (dmemstart), abfd) 64 || (bfd_bread (&dmemsize, (bfd_size_type) sizeof (dmemsize), abfd) 69 execp->a_dload = H_GET_32 (abfd, (unsigned char *) &dmemstart); 71 execp->a_data = H_GET_32 (abfd, (unsigned char *) &dmemsize); [all …]
|
| H A D | coffswap.h | 32 #define GET_FCN_LNNOPTR(abfd, ext) \ argument 33 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 37 #define GET_FCN_ENDNDX(abfd, ext) \ argument 38 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx) 42 #define PUT_FCN_LNNOPTR(abfd, in, ext) \ argument 43 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 46 #define PUT_FCN_ENDNDX(abfd, in, ext) \ argument 47 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx) 50 #define GET_LNSZ_LNNO(abfd, ext) \ argument 51 H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno) [all …]
|
| H A D | hp300hpux.c | 229 MY (callback) (abfd) 230 bfd *abfd; 232 struct internal_exec *execp = exec_hdr (abfd); 235 obj_textsec (abfd)->_raw_size = N_TXTSIZE (*execp); 238 obj_textsec (abfd)->vma = N_TXTADDR (*execp); 239 obj_datasec (abfd)->vma = N_DATADDR (*execp); 240 obj_bsssec (abfd)->vma = N_BSSADDR (*execp); 242 obj_textsec (abfd)->lma = obj_textsec (abfd)->vma; 243 obj_datasec (abfd)->lma = obj_datasec (abfd)->vma; 244 obj_bsssec (abfd)->lma = obj_bsssec (abfd)->vma; [all …]
|
| H A D | vms.c | 41 PARAMS ((bfd *abfd)); 43 PARAMS ((bfd *abfd)); 45 PARAMS ((bfd *abfd)); 47 PARAMS ((bfd *abfd)); 49 PARAMS ((bfd *abfd)); 51 PARAMS ((bfd *abfd)); 53 PARAMS ((bfd *abfd, asection *section)); 55 PARAMS ((bfd *abfd, asection *section, PTR x1, file_ptr x2, 58 PARAMS ((bfd *abfd, asection *section, bfd_window *w, file_ptr offset, 67 PARAMS ((bfd *abfd, void *file)); [all …]
|
| H A D | bfd.c | 512 bfd_archive_filename (bfd *abfd) in bfd_archive_filename() argument 514 if (abfd == NULL) in bfd_archive_filename() 517 if (abfd->my_archive) in bfd_archive_filename() 523 needed = (strlen (bfd_get_filename (abfd->my_archive)) in bfd_archive_filename() 524 + strlen (bfd_get_filename (abfd)) + 3); in bfd_archive_filename() 537 return bfd_get_filename (abfd); in bfd_archive_filename() 540 sprintf (buf, "%s(%s)", bfd_get_filename (abfd->my_archive), in bfd_archive_filename() 541 bfd_get_filename (abfd)); in bfd_archive_filename() 545 return bfd_get_filename (abfd); in bfd_archive_filename() 568 bfd_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in bfd_get_reloc_upper_bound() argument [all …]
|
| H A D | ecoffswap.h | 98 ecoff_swap_hdr_in (abfd, ext_copy, intern) in ecoff_swap_hdr_in() argument 99 bfd *abfd; in ecoff_swap_hdr_in() 107 intern->magic = H_GET_S16 (abfd, ext->h_magic); 108 intern->vstamp = H_GET_S16 (abfd, ext->h_vstamp); 109 intern->ilineMax = H_GET_32 (abfd, ext->h_ilineMax); 110 intern->cbLine = ECOFF_GET_OFF (abfd, ext->h_cbLine); 111 intern->cbLineOffset = ECOFF_GET_OFF (abfd, ext->h_cbLineOffset); 112 intern->idnMax = H_GET_32 (abfd, ext->h_idnMax); 113 intern->cbDnOffset = ECOFF_GET_OFF (abfd, ext->h_cbDnOffset); 114 intern->ipdMax = H_GET_32 (abfd, ext->h_ipdMax); [all …]
|
| H A D | aout-adobe.c | 38 PARAMS ((bfd *abfd)); 42 PARAMS ((bfd *abfd, sec_ptr sect)); 63 aout_adobe_swap_exec_header_in (abfd, raw_bytes, execp) in aout_adobe_swap_exec_header_in() argument 64 bfd *abfd; in aout_adobe_swap_exec_header_in() 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, bytes->e_entry); [all …]
|
| H A D | mmo.c | 490 mmo_make_section (abfd, secname) in mmo_make_section() argument 491 bfd *abfd; in mmo_make_section() 494 asection *sec = bfd_get_section_by_name (abfd, secname); 504 bfd_get_filename (abfd), secname); 508 sec = bfd_make_section (abfd, newsecname); 542 mmo_object_p (abfd) in mmo_object_p() argument 543 bfd *abfd; in mmo_object_p() 550 if (bfd_stat (abfd, &statbuf) < 0 551 || bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 552 || bfd_bread (b, 4, abfd) != 4) [all …]
|
| H A D | bfdio.c | 100 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) in bfd_bread() argument 104 if ((abfd->flags & BFD_IN_MEMORY) != 0) in bfd_bread() 109 bim = abfd->iostream; in bfd_bread() 111 if (abfd->where + get > bim->size) in bfd_bread() 113 if (bim->size < (bfd_size_type) abfd->where) in bfd_bread() 116 get = bim->size - abfd->where; in bfd_bread() 119 memcpy (ptr, bim->buffer + abfd->where, (size_t) get); in bfd_bread() 120 abfd->where += get; in bfd_bread() 124 nread = real_read (ptr, 1, (size_t) size, bfd_cache_lookup (abfd)); in bfd_bread() 126 abfd->where += nread; in bfd_bread() [all …]
|
| H A D | nlmswap.h | 42 nlm_swap_fixed_header_in (abfd, realsrc, dst) in nlm_swap_fixed_header_in() argument 43 bfd *abfd; in nlm_swap_fixed_header_in() 51 H_GET_32 (abfd, src->version); 53 H_GET_32 (abfd, src->codeImageOffset); 55 H_GET_32 (abfd, src->codeImageSize); 57 H_GET_32 (abfd, src->dataImageOffset); 59 H_GET_32 (abfd, src->dataImageSize); 61 H_GET_32 (abfd, src->uninitializedDataSize); 63 H_GET_32 (abfd, src->customDataOffset); 65 H_GET_32 (abfd, src->customDataSize); [all …]
|
| H A D | versados.c | 113 #define VDATA(abfd) (abfd->tdata.versados_data) argument 114 #define EDATA(abfd, n) (abfd->tdata.versados_data->e[n]) argument 115 #define RDATA(abfd, n) (abfd->tdata.versados_data->rest[n]) argument 177 versados_mkobject (abfd) in versados_mkobject() argument 178 bfd *abfd; in versados_mkobject() 180 if (abfd->tdata.versados_data == NULL) 183 tdata_type *tdata = (tdata_type *) bfd_alloc (abfd, amt); 186 abfd->tdata.versados_data = tdata; 188 VDATA (abfd)->alert = 0x12345678; 191 bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0); [all …]
|
| H A D | mach-o.c | 166 bfd_mach_o_valid (abfd) in bfd_mach_o_valid() argument 167 bfd *abfd; in bfd_mach_o_valid() 169 if (abfd == NULL || abfd->xvec == NULL) 172 if (! ((abfd->xvec == &mach_o_be_vec) 173 || (abfd->xvec == &mach_o_le_vec) 174 || (abfd->xvec == &mach_o_fat_vec))) 177 if (abfd->tdata.mach_o_data == NULL) 225 bfd_mach_o_count_symbols (abfd) in bfd_mach_o_count_symbols() argument 226 bfd *abfd; in bfd_mach_o_count_symbols() 232 BFD_ASSERT (bfd_mach_o_valid (abfd)); [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | nlmcode.h | 55 #define nlm_swap_fixed_header_in(abfd,src,dst) \ argument 56 (nlm_swap_fixed_header_in_func (abfd)) (abfd, src, dst) 57 #define nlm_swap_fixed_header_out(abfd,src,dst) \ argument 58 (nlm_swap_fixed_header_out_func (abfd)) (abfd, src, dst) 75 nlm_swap_variable_header_in (bfd *abfd) in nlm_swap_variable_header_in() argument 81 amt = sizeof (nlm_variable_header (abfd)->descriptionLength); in nlm_swap_variable_header_in() 82 if (bfd_bread ((void *) &nlm_variable_header (abfd)->descriptionLength, in nlm_swap_variable_header_in() 83 amt, abfd) != amt) in nlm_swap_variable_header_in() 85 amt = nlm_variable_header (abfd)->descriptionLength + 1; in nlm_swap_variable_header_in() 86 if (bfd_bread ((void *) nlm_variable_header (abfd)->descriptionText, in nlm_swap_variable_header_in() [all …]
|
| H A D | vms-tir.c | 44 check_section (bfd * abfd, int size) in check_section() argument 70 image_set_ptr (bfd * abfd, int psect, uquad offset) in image_set_ptr() argument 84 image_inc_ptr (bfd * abfd, uquad offset) in image_inc_ptr() argument 96 image_dump (bfd * abfd, in image_dump() argument 107 if (PRIV (is_vax) && check_section (abfd, size)) in image_dump() 117 image_write_b (bfd * abfd, unsigned int value) in image_write_b() argument 123 if (PRIV (is_vax) && check_section (abfd, 1)) in image_write_b() 132 image_write_w (bfd * abfd, unsigned int value) in image_write_w() argument 138 if (PRIV (is_vax) && check_section (abfd, 2)) in image_write_w() 148 image_write_l (bfd * abfd, unsigned long value) in image_write_l() argument [all …]
|
| H A D | cache.c | 81 insert (bfd *abfd) in insert() argument 85 abfd->lru_next = abfd; in insert() 86 abfd->lru_prev = abfd; in insert() 90 abfd->lru_next = bfd_last_cache; in insert() 91 abfd->lru_prev = bfd_last_cache->lru_prev; in insert() 92 abfd->lru_prev->lru_next = abfd; in insert() 93 abfd->lru_next->lru_prev = abfd; in insert() 95 bfd_last_cache = abfd; in insert() 101 snip (bfd *abfd) in snip() argument 103 abfd->lru_prev->lru_next = abfd->lru_next; in snip() [all …]
|
| H A D | bfdio.c | 115 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) in bfd_bread() argument 119 if ((abfd->flags & BFD_IN_MEMORY) != 0) in bfd_bread() 124 bim = abfd->iostream; in bfd_bread() 126 if (abfd->where + get > bim->size) in bfd_bread() 128 if (bim->size < (bfd_size_type) abfd->where) in bfd_bread() 131 get = bim->size - abfd->where; in bfd_bread() 134 memcpy (ptr, bim->buffer + abfd->where, (size_t) get); in bfd_bread() 135 abfd->where += get; in bfd_bread() 139 if (abfd->iovec) in bfd_bread() 140 nread = abfd->iovec->bread (abfd, ptr, size); in bfd_bread() [all …]
|
| H A D | coffswap.h | 32 #define GET_FCN_LNNOPTR(abfd, ext) \ argument 33 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 37 #define GET_FCN_ENDNDX(abfd, ext) \ argument 38 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx) 42 #define PUT_FCN_LNNOPTR(abfd, in, ext) \ argument 43 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 46 #define PUT_FCN_ENDNDX(abfd, in, ext) \ argument 47 H_PUT_32 (abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx) 50 #define GET_LNSZ_LNNO(abfd, ext) \ argument 51 H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno) [all …]
|
| H A D | hp300hpux.c | 229 MY (callback) (abfd) 230 bfd *abfd; 232 struct internal_exec *execp = exec_hdr (abfd); 235 obj_textsec (abfd)->size = N_TXTSIZE (*execp); 238 obj_textsec (abfd)->vma = N_TXTADDR (*execp); 239 obj_datasec (abfd)->vma = N_DATADDR (*execp); 240 obj_bsssec (abfd)->vma = N_BSSADDR (*execp); 242 obj_textsec (abfd)->lma = obj_textsec (abfd)->vma; 243 obj_datasec (abfd)->lma = obj_datasec (abfd)->vma; 244 obj_bsssec (abfd)->lma = obj_bsssec (abfd)->vma; [all …]
|
| H A D | aout-adobe.c | 37 aout_adobe_swap_exec_header_in (bfd *abfd, in aout_adobe_swap_exec_header_in() argument 42 execp->a_info = H_GET_32 (abfd, bytes->e_info); in aout_adobe_swap_exec_header_in() 43 execp->a_text = GET_WORD (abfd, bytes->e_text); in aout_adobe_swap_exec_header_in() 44 execp->a_data = GET_WORD (abfd, bytes->e_data); in aout_adobe_swap_exec_header_in() 45 execp->a_bss = GET_WORD (abfd, bytes->e_bss); in aout_adobe_swap_exec_header_in() 46 execp->a_syms = GET_WORD (abfd, bytes->e_syms); in aout_adobe_swap_exec_header_in() 47 execp->a_entry = GET_WORD (abfd, bytes->e_entry); in aout_adobe_swap_exec_header_in() 48 execp->a_trsize = GET_WORD (abfd, bytes->e_trsize); in aout_adobe_swap_exec_header_in() 49 execp->a_drsize = GET_WORD (abfd, bytes->e_drsize); in aout_adobe_swap_exec_header_in() 56 aout_adobe_swap_exec_header_out (bfd *abfd, in aout_adobe_swap_exec_header_out() argument [all …]
|
| H A D | mmo.c | 445 mmo_make_section (bfd *abfd, const char *secname) in mmo_make_section() argument 447 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section() 457 bfd_get_filename (abfd), secname); in mmo_make_section() 461 sec = bfd_make_section (abfd, newsecname); in mmo_make_section() 495 mmo_object_p (bfd *abfd) in mmo_object_p() argument 502 if (bfd_stat (abfd, &statbuf) < 0 in mmo_object_p() 503 || bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 in mmo_object_p() 504 || bfd_bread (b, 4, abfd) != 4) in mmo_object_p() 514 if (bfd_seek (abfd, (file_ptr) statbuf.st_size - 4, SEEK_SET) != 0 in mmo_object_p() 515 || bfd_bread (b, 4, abfd) != 4) in mmo_object_p() [all …]
|
| H A D | bfd.c | 485 bfd *abfd = va_arg (ap, bfd *); in _bfd_default_error_handler() local 486 if (abfd->my_archive) in _bfd_default_error_handler() 488 abfd->my_archive->filename, abfd->filename); in _bfd_default_error_handler() 490 snprintf (bufp, avail, "%s", abfd->filename); in _bfd_default_error_handler() 495 bfd *abfd = sec->owner; in _bfd_default_error_handler() local 499 if (abfd != NULL in _bfd_default_error_handler() 500 && bfd_get_flavour (abfd) == bfd_target_elf_flavour in _bfd_default_error_handler() 504 else if (abfd != NULL in _bfd_default_error_handler() 505 && bfd_get_flavour (abfd) == bfd_target_coff_flavour in _bfd_default_error_handler() 655 bfd_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in bfd_get_reloc_upper_bound() argument [all …]
|
| H A D | vms.c | 45 vms_initialize (bfd * abfd) in vms_initialize() argument 50 bfd_set_start_address (abfd, (bfd_vma) -1); in vms_initialize() 53 abfd->tdata.any = bfd_alloc (abfd, amt); in vms_initialize() 54 if (abfd->tdata.any == NULL) in vms_initialize() 70 PRIV (stack) = bfd_alloc (abfd, amt); in vms_initialize() 76 PRIV (vms_symbol_table) = bfd_alloc (abfd, amt); in vms_initialize() 85 PRIV (location_stack) = bfd_alloc (abfd, amt); in vms_initialize() 93 PRIV (output_buf) = bfd_alloc (abfd, amt); in vms_initialize() 108 bfd_release (abfd, abfd->tdata.any); in vms_initialize() 109 abfd->tdata.any = NULL; in vms_initialize() [all …]
|