/toolchain/binutils/binutils-2.25/bfd/ |
D | nlmswap.h | 42 Nlm_External_Fixed_Header *src = (Nlm_External_Fixed_Header *) realsrc; in nlm_swap_fixed_header_in() local 44 memcpy (dst->signature, src->signature, NLM_SIGNATURE_SIZE); in nlm_swap_fixed_header_in() 45 memcpy (dst->moduleName, src->moduleName, NLM_MODULE_NAME_SIZE); in nlm_swap_fixed_header_in() 47 H_GET_32 (abfd, src->version); in nlm_swap_fixed_header_in() 49 H_GET_32 (abfd, src->codeImageOffset); in nlm_swap_fixed_header_in() 51 H_GET_32 (abfd, src->codeImageSize); in nlm_swap_fixed_header_in() 53 H_GET_32 (abfd, src->dataImageOffset); in nlm_swap_fixed_header_in() 55 H_GET_32 (abfd, src->dataImageSize); in nlm_swap_fixed_header_in() 57 H_GET_32 (abfd, src->uninitializedDataSize); in nlm_swap_fixed_header_in() 59 H_GET_32 (abfd, src->customDataOffset); in nlm_swap_fixed_header_in() [all …]
|
D | elfcode.h | 179 const Elf_External_Sym *src = (const Elf_External_Sym *) psrc; in elf_swap_symbol_in() local 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() 209 const Elf_Internal_Sym *src, in elf_swap_symbol_out() argument 215 H_PUT_32 (abfd, src->st_name, dst->st_name); in elf_swap_symbol_out() [all …]
|
D | tekhex.c | 272 char *src = *srcp; in getvalue() local 276 if (!ISHEX (*src)) in getvalue() 279 len = hex_value (*src++); in getvalue() 284 if (!ISHEX (*src)) in getvalue() 286 value = value << 4 | hex_value (*src++); in getvalue() 289 *srcp = src; in getvalue() 297 char *src = *srcp; in getsym() local 301 if (!ISHEX (*src)) in getsym() 304 len = hex_value (*src++); in getsym() 308 dstp[i] = src[i]; in getsym() [all …]
|
D | som.c | 1603 som_swap_clock_in (struct som_external_clock *src, in som_swap_clock_in() argument 1606 dst->secs = bfd_getb32 (src->secs); in som_swap_clock_in() 1607 dst->nanosecs = bfd_getb32 (src->nanosecs); in som_swap_clock_in() 1611 som_swap_clock_out (struct som_clock *src, in som_swap_clock_out() argument 1614 bfd_putb32 (src->secs, dst->secs); in som_swap_clock_out() 1615 bfd_putb32 (src->nanosecs, dst->nanosecs); in som_swap_clock_out() 1619 som_swap_header_in (struct som_external_header *src, in som_swap_header_in() argument 1622 dst->system_id = bfd_getb16 (src->system_id); in som_swap_header_in() 1623 dst->a_magic = bfd_getb16 (src->a_magic); in som_swap_header_in() 1624 dst->version_id = bfd_getb32 (src->version_id); in som_swap_header_in() [all …]
|
D | elf64-mips.c | 2881 mips_elf64_swap_reloc_in (bfd *abfd, const Elf64_Mips_External_Rel *src, in mips_elf64_swap_reloc_in() argument 2884 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloc_in() 2885 dst->r_sym = H_GET_32 (abfd, src->r_sym); in mips_elf64_swap_reloc_in() 2886 dst->r_ssym = H_GET_8 (abfd, src->r_ssym); in mips_elf64_swap_reloc_in() 2887 dst->r_type3 = H_GET_8 (abfd, src->r_type3); in mips_elf64_swap_reloc_in() 2888 dst->r_type2 = H_GET_8 (abfd, src->r_type2); in mips_elf64_swap_reloc_in() 2889 dst->r_type = H_GET_8 (abfd, src->r_type); in mips_elf64_swap_reloc_in() 2896 mips_elf64_swap_reloca_in (bfd *abfd, const Elf64_Mips_External_Rela *src, in mips_elf64_swap_reloca_in() argument 2899 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloca_in() 2900 dst->r_sym = H_GET_32 (abfd, src->r_sym); in mips_elf64_swap_reloca_in() [all …]
|
D | oasys.c | 374 bfd_byte *src = record.data.data; in oasys_slurp_section_data() local 415 if (src < end_src) in oasys_slurp_section_data() 418 while (src < end_src) in oasys_slurp_section_data() 420 unsigned char mod_byte = *src++; in oasys_slurp_section_data() 421 size_t gap = end_src - src; in oasys_slurp_section_data() 426 dst_ptr[0] = src[0]; in oasys_slurp_section_data() 427 dst_ptr[1] = src[1]; in oasys_slurp_section_data() 428 dst_ptr[2] = src[2]; in oasys_slurp_section_data() 429 dst_ptr[3] = src[3]; in oasys_slurp_section_data() 430 dst_ptr[4] = src[4]; in oasys_slurp_section_data() [all …]
|
D | coff64-rs6000.c | 596 const struct external_ldhdr *src = (const struct external_ldhdr *) s; in xcoff64_swap_ldhdr_in() local 598 dst->l_version = bfd_get_32 (abfd, src->l_version); in xcoff64_swap_ldhdr_in() 599 dst->l_nsyms = bfd_get_32 (abfd, src->l_nsyms); in xcoff64_swap_ldhdr_in() 600 dst->l_nreloc = bfd_get_32 (abfd, src->l_nreloc); in xcoff64_swap_ldhdr_in() 601 dst->l_istlen = bfd_get_32 (abfd, src->l_istlen); in xcoff64_swap_ldhdr_in() 602 dst->l_nimpid = bfd_get_32 (abfd, src->l_nimpid); in xcoff64_swap_ldhdr_in() 603 dst->l_stlen = bfd_get_32 (abfd, src->l_stlen); in xcoff64_swap_ldhdr_in() 604 dst->l_impoff = bfd_get_64 (abfd, src->l_impoff); in xcoff64_swap_ldhdr_in() 605 dst->l_stoff = bfd_get_64 (abfd, src->l_stoff); in xcoff64_swap_ldhdr_in() 606 dst->l_symoff = bfd_get_64 (abfd, src->l_symoff); in xcoff64_swap_ldhdr_in() [all …]
|
/toolchain/binutils/binutils-2.25/gas/config/ |
D | tc-z8k.c | 205 whatreg (unsigned int *preg, char *src) in whatreg() argument 210 if (ISDIGIT (src[1])) in whatreg() 212 new_reg = (src[0] - '0') * 10 + src[1] - '0'; in whatreg() 213 src += 2; in whatreg() 217 new_reg = (src[0] - '0'); in whatreg() 218 src += 1; in whatreg() 221 if (src[0] != 0 && src[0] != ',' && src[0] != '(' && src[0] != ')') in whatreg() 225 return src; in whatreg() 246 parse_reg (char *src, int *mode, unsigned int *preg) in parse_reg() argument 252 if ((src[0] == 's' || src[0] == 'S') in parse_reg() [all …]
|
D | tc-h8300.c | 263 char *src = p1->name; in md_begin() local 270 dst = buffer = malloc (strlen (src) + 1); in md_begin() 271 while (*src) in md_begin() 273 if (*src == '.') in md_begin() 275 src++; in md_begin() 278 if (*src == '/') in md_begin() 279 cmplen = src - p1->name + 1; in md_begin() 280 *dst++ = *src++; in md_begin() 376 parse_reg (char *src, op_type *mode, unsigned int *reg, int direction) in parse_reg() argument 382 if (!is_name_beginner (*src) || *src == '\001') in parse_reg() [all …]
|
D | tc-sh64.c | 1614 shmedia_parse_reg (char *src, int *mode, int *reg, shmedia_arg_type argtype) in shmedia_parse_reg() argument 1616 int l0 = TOLOWER (src[0]); in shmedia_parse_reg() 1617 int l1 = l0 ? TOLOWER (src[1]) : 0; in shmedia_parse_reg() 1621 if (src[1] >= '1' && src[1] <= '5') in shmedia_parse_reg() 1623 if (src[2] >= '0' && src[2] <= '9' in shmedia_parse_reg() 1624 && ! IDENT_CHAR ((unsigned char) src[3])) in shmedia_parse_reg() 1627 *reg = 10 * (src[1] - '0') + src[2] - '0'; in shmedia_parse_reg() 1632 if (src[1] == '6') in shmedia_parse_reg() 1634 if (src[2] >= '0' && src[2] <= '3' in shmedia_parse_reg() 1635 && ! IDENT_CHAR ((unsigned char) src[3])) in shmedia_parse_reg() [all …]
|
D | tc-sh.c | 990 parse_reg_without_prefix (char *src, int *mode, int *reg) in parse_reg_without_prefix() argument 992 char l0 = TOLOWER (src[0]); in parse_reg_without_prefix() 993 char l1 = l0 ? TOLOWER (src[1]) : 0; in parse_reg_without_prefix() 1003 if (src[2] >= '0' && src[2] <= '5' in parse_reg_without_prefix() 1004 && ! IDENT_CHAR ((unsigned char) src[3])) in parse_reg_without_prefix() 1007 *reg = 10 + src[2] - '0'; in parse_reg_without_prefix() 1012 && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix() 1018 if (l1 >= '0' && l1 <= '7' && strncasecmp (&src[2], "_bank", 5) == 0 in parse_reg_without_prefix() 1019 && ! IDENT_CHAR ((unsigned char) src[7])) in parse_reg_without_prefix() 1026 if (l1 == 'e' && ! IDENT_CHAR ((unsigned char) src[2])) in parse_reg_without_prefix() [all …]
|
D | tc-z80.c | 1432 emit_ldxhl (char prefix, char opcode, expressionS *src, expressionS *d) in emit_ldxhl() argument 1436 if (src->X_md) in emit_ldxhl() 1440 if (src->X_op == O_register) in emit_ldxhl() 1442 if (src->X_add_number>7) in emit_ldxhl() 1451 *q = opcode + src->X_add_number; in emit_ldxhl() 1467 emit_byte (src, BFD_RELOC_8); in emit_ldxhl() 1473 emit_ldreg (int dest, expressionS * src) in emit_ldreg() argument 1483 if (src->X_md == 0 && src->X_op == O_register && src->X_add_number == REG_A) in emit_ldreg() 1494 if ((src->X_md) && src->X_op != O_register && src->X_op != O_md1) in emit_ldreg() 1498 emit_word (src); in emit_ldreg() [all …]
|
D | tc-ppc.h | 194 #define OBJ_COPY_SYMBOL_ATTRIBUTES(dest,src) \ argument 197 S_SET_SEGMENT (dest, S_GET_SEGMENT (src)); \ 198 symbol_get_tc (dest)->u = symbol_get_tc (src)->u; \ 199 symbol_get_tc (dest)->align = symbol_get_tc (src)->align; \ 200 symbol_get_tc (dest)->symbol_class = symbol_get_tc (src)->symbol_class; \ 201 symbol_get_tc (dest)->within = symbol_get_tc (src)->within; \
|
/toolchain/binutils/binutils-2.25/gprof/ |
D | symtab.c | 81 Sym *src, *dst; in symtab_finalize() local 94 for (src = dst = tab->base; src < tab->limit; ++src) in symtab_finalize() 96 if (src->addr == prev_addr) in symtab_finalize() 105 if ((!src->is_static && dst[-1].is_static) in symtab_finalize() 106 || ((src->is_static == dst[-1].is_static) in symtab_finalize() 107 && ((src->is_func && !dst[-1].is_func) in symtab_finalize() 108 || ((src->is_func == dst[-1].is_func) in symtab_finalize() 109 && ((src->name[0] != '_' && dst[-1].name[0] == '_') in symtab_finalize() 110 || (src->name[0] in symtab_finalize() 111 && src->name[1] != '_' in symtab_finalize() [all …]
|
/toolchain/binutils/binutils-2.25/libiberty/ |
D | dyn-string.c | 184 dyn_string_copy (dyn_string_t dest, dyn_string_t src) in dyn_string_copy() argument 186 if (dest == src) in dyn_string_copy() 190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy() 193 strcpy (dest->s, src->s); in dyn_string_copy() 195 dest->length = src->length; in dyn_string_copy() 204 dyn_string_copy_cstr (dyn_string_t dest, const char *src) in dyn_string_copy_cstr() argument 206 int length = strlen (src); in dyn_string_copy_cstr() 211 strcpy (dest->s, src); in dyn_string_copy_cstr() 223 dyn_string_prepend (dyn_string_t dest, dyn_string_t src) in dyn_string_prepend() argument 225 return dyn_string_insert (dest, 0, src); in dyn_string_prepend() [all …]
|
D | memchr.c | 24 const unsigned char *src = (const unsigned char *)src_void; in memchr() local 28 if (*src == c) in memchr() 29 return (PTR)src; in memchr() 30 src++; in memchr()
|
D | bcopy.c | 15 bcopy (const void *src, void *dest, size_t len) in bcopy() argument 17 if (dest < src) in bcopy() 19 const char *firsts = (const char *) src; in bcopy() 26 const char *lasts = (const char *)src + (len-1); in bcopy()
|
D | stpcpy.c | 39 stpcpy (char *dst, const char *src) in stpcpy() argument 41 const size_t len = strlen (src); in stpcpy() 42 return (char *) memcpy (dst, src, len + 1) + len; in stpcpy()
|
D | stpncpy.c | 42 stpncpy (char *dst, const char *src, size_t len) in stpncpy() argument 44 size_t n = strlen (src); in stpncpy() 47 return strncpy (dst, src, len) + n; in stpncpy()
|
/toolchain/binutils/binutils-2.25/gas/ |
D | macro.c | 747 size_t src; in sub_actual() local 750 src = get_apost_token (start, in, t, kind); in sub_actual() 755 && (src == start || in->ptr[src - 1] != '@')) in sub_actual() 775 if (src != start && in->ptr[src - 1] == '&') in sub_actual() 787 return src; in sub_actual() 797 size_t src = 0; in macro_expand_body() local 804 while (src < in->len && !err) in macro_expand_body() 806 if (in->ptr[src] == '&') in macro_expand_body() 811 if (src + 1 < in->len && in->ptr[src + 1] == '&') in macro_expand_body() 812 src = sub_actual (src + 2, in, &t, formal_hash, '\'', out, 1); in macro_expand_body() [all …]
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/tic54x/ |
D | opcodes.s | 11 add *ar0+, a ; Smem, src 12 add *ar1+, ts, a ; Smem, TS, src 13 add *ar2+, 16, a ; Smem, 16, src [,dst] 14 add *ar3+, a, b ; Smem [,SHIFT], src [,dst] (-16<=SHIFT<=15) 16 add *ar4+, 1, a ; Xmem, SHFT, src (0<=SHFT<=15) 18 add #-32768, a ; #lk [,SHFT], src [,dst] (-32768<=lk<=32767) 20 add #0,16,a,b ; #lk, 16, src, [,dst] 22 add a,-16,b ; src [,SHIFT][,dst] 23 add a,asm,b ; src, ASM [,dst] 28 and *ar3+,a ; Smem,src [all …]
|
/toolchain/binutils/binutils-2.25/ |
D | install-sh | 79 src= 246 for src 249 case $src in 250 -* | [=\(\)!]) src=./$src;; 254 dst=$src 263 if test ! -f "$src" && test ! -d "$src"; then 264 echo "$0: $src does not exist." >&2 282 dst=$dstdir/`basename "$src"` 437 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 443 # errors from the above "$doit $cpprog $src $dsttmp" command.
|
/toolchain/binutils/binutils-2.25/bfd/doc/ |
D | chew.c | 209 overwrite_string (dst, src) in overwrite_string() argument 211 string_type *src; 214 dst->size = src->size; 215 dst->write_idx = src->write_idx; 216 dst->ptr = src->ptr; 244 catstr (dst, src) in catstr() argument 246 string_type *src; 248 catbuf (dst, src->ptr, src->write_idx); 252 skip_white_and_stars (src, idx) in skip_white_and_stars() argument 253 string_type *src; in skip_white_and_stars() [all …]
|
/toolchain/binutils/binutils-2.25/include/coff/ |
D | ti.h | 104 #define COFF_ADJUST_FILEHDR_IN_POST(abfd, src, dst) \ argument 109 H_GET_16 (abfd, ((FILHDR *)(src))->f_target_id); \ 115 #define COFF_ADJUST_FILEHDR_OUT_POST(abfd, src, dst) \ argument 119 H_PUT_16 (abfd, ((struct internal_filehdr *)(src))->f_target_id, \ 509 struct internal_syment *src = (struct internal_syment *)(INT); \ 511 if (src->n_sclass == C_MOU || src->n_sclass == C_MOS) \ 512 H_PUT_32 (abfd, src->n_value * 8, dst->e_value); \ 513 else if (NEEDS_PAGE (src->n_sclass)) { \ 514 H_PUT_32 (abfd, src->n_value &= ~PAGE_MASK, dst->e_value); \ 548 #define SWAP_OUT_RELOC_EXTRA(abfd, src, dst) \ argument
|
/toolchain/binutils/binutils-2.25/include/opcode/ |
D | m88k.h | 357 #define UEXT(src,off,wid) \ argument 358 ((((unsigned int)(src)) >> (off)) & ((1 << (wid)) - 1)) 360 #define SEXT(src,off,wid) \ argument 361 (((((int)(src))<<(32 - ((off) + (wid)))) >>(32 - (wid))) ) 363 #define MAKE(src,off,wid) \ argument 364 ((((unsigned int)(src)) & ((1 << (wid)) - 1)) << (off))
|