Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 196) sorted by relevance

12345678

/toolchain/binutils/binutils-2.27/bfd/
Dnlmswap.h42 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 …]
Delfcode.h180 const Elf_External_Sym *src = (const Elf_External_Sym *) psrc; in elf_swap_symbol_in() local
184 dst->st_name = H_GET_32 (abfd, src->st_name); in elf_swap_symbol_in()
186 dst->st_value = H_GET_SIGNED_WORD (abfd, src->st_value); in elf_swap_symbol_in()
188 dst->st_value = H_GET_WORD (abfd, src->st_value); in elf_swap_symbol_in()
189 dst->st_size = H_GET_WORD (abfd, src->st_size); in elf_swap_symbol_in()
190 dst->st_info = H_GET_8 (abfd, src->st_info); in elf_swap_symbol_in()
191 dst->st_other = H_GET_8 (abfd, src->st_other); in elf_swap_symbol_in()
192 dst->st_shndx = H_GET_16 (abfd, src->st_shndx); in elf_swap_symbol_in()
210 const Elf_Internal_Sym *src, in elf_swap_symbol_out() argument
216 H_PUT_32 (abfd, src->st_name, dst->st_name); in elf_swap_symbol_out()
[all …]
Dtekhex.c272 char *src = *srcp; in getvalue() local
276 if (!ISHEX (*src)) in getvalue()
279 len = hex_value (*src++); in getvalue()
282 while (len-- && src < endp) 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()
[all …]
Delf64-mips.c2911 mips_elf64_swap_reloc_in (bfd *abfd, const Elf64_Mips_External_Rel *src, in mips_elf64_swap_reloc_in() argument
2914 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloc_in()
2915 dst->r_sym = H_GET_32 (abfd, src->r_sym); in mips_elf64_swap_reloc_in()
2916 dst->r_ssym = H_GET_8 (abfd, src->r_ssym); in mips_elf64_swap_reloc_in()
2917 dst->r_type3 = H_GET_8 (abfd, src->r_type3); in mips_elf64_swap_reloc_in()
2918 dst->r_type2 = H_GET_8 (abfd, src->r_type2); in mips_elf64_swap_reloc_in()
2919 dst->r_type = H_GET_8 (abfd, src->r_type); in mips_elf64_swap_reloc_in()
2926 mips_elf64_swap_reloca_in (bfd *abfd, const Elf64_Mips_External_Rela *src, in mips_elf64_swap_reloca_in() argument
2929 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloca_in()
2930 dst->r_sym = H_GET_32 (abfd, src->r_sym); in mips_elf64_swap_reloca_in()
[all …]
Doasys.c372 bfd_byte *src = record.data.data; in oasys_slurp_section_data() local
413 if (src < end_src) in oasys_slurp_section_data()
416 while (src < end_src) in oasys_slurp_section_data()
418 unsigned char mod_byte = *src++; in oasys_slurp_section_data()
419 size_t gap = end_src - src; in oasys_slurp_section_data()
424 dst_ptr[0] = src[0]; in oasys_slurp_section_data()
425 dst_ptr[1] = src[1]; in oasys_slurp_section_data()
426 dst_ptr[2] = src[2]; in oasys_slurp_section_data()
427 dst_ptr[3] = src[3]; in oasys_slurp_section_data()
428 dst_ptr[4] = src[4]; in oasys_slurp_section_data()
[all …]
Dcoff64-rs6000.c594 const struct external_ldhdr *src = (const struct external_ldhdr *) s; in xcoff64_swap_ldhdr_in() local
596 dst->l_version = bfd_get_32 (abfd, src->l_version); in xcoff64_swap_ldhdr_in()
597 dst->l_nsyms = bfd_get_32 (abfd, src->l_nsyms); in xcoff64_swap_ldhdr_in()
598 dst->l_nreloc = bfd_get_32 (abfd, src->l_nreloc); in xcoff64_swap_ldhdr_in()
599 dst->l_istlen = bfd_get_32 (abfd, src->l_istlen); in xcoff64_swap_ldhdr_in()
600 dst->l_nimpid = bfd_get_32 (abfd, src->l_nimpid); in xcoff64_swap_ldhdr_in()
601 dst->l_stlen = bfd_get_32 (abfd, src->l_stlen); in xcoff64_swap_ldhdr_in()
602 dst->l_impoff = bfd_get_64 (abfd, src->l_impoff); in xcoff64_swap_ldhdr_in()
603 dst->l_stoff = bfd_get_64 (abfd, src->l_stoff); in xcoff64_swap_ldhdr_in()
604 dst->l_symoff = bfd_get_64 (abfd, src->l_symoff); in xcoff64_swap_ldhdr_in()
[all …]
/toolchain/binutils/binutils-2.27/gas/config/
Dtc-z8k.c205 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 …]
Dtc-h8300.c268 const char *src = p1->name; in md_begin() local
275 dst = buffer = XNEWVEC (char, strlen (src) + 1); in md_begin()
276 while (*src) in md_begin()
278 if (*src == '.') in md_begin()
280 src++; in md_begin()
283 if (*src == '/') in md_begin()
284 cmplen = src - p1->name + 1; in md_begin()
285 *dst++ = *src++; in md_begin()
381 parse_reg (char *src, op_type *mode, unsigned int *reg, int direction) in parse_reg() argument
387 if (!is_name_beginner (*src) || *src == '\001') in parse_reg()
[all …]
Dtc-sh64.c1615 shmedia_parse_reg (char *src, shmedia_arg_type *mode, int *reg, in shmedia_parse_reg() argument
1618 int l0 = TOLOWER (src[0]); in shmedia_parse_reg()
1619 int l1 = l0 ? TOLOWER (src[1]) : 0; in shmedia_parse_reg()
1623 if (src[1] >= '1' && src[1] <= '5') in shmedia_parse_reg()
1625 if (src[2] >= '0' && src[2] <= '9' in shmedia_parse_reg()
1626 && ! IDENT_CHAR ((unsigned char) src[3])) in shmedia_parse_reg()
1629 *reg = 10 * (src[1] - '0') + src[2] - '0'; in shmedia_parse_reg()
1634 if (src[1] == '6') in shmedia_parse_reg()
1636 if (src[2] >= '0' && src[2] <= '3' in shmedia_parse_reg()
1637 && ! IDENT_CHAR ((unsigned char) src[3])) in shmedia_parse_reg()
[all …]
Dtc-sh.c990 parse_reg_without_prefix (char *src, sh_arg_type *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 …]
Dtc-z80.c1433 emit_ldxhl (char prefix, char opcode, expressionS *src, expressionS *d) in emit_ldxhl() argument
1437 if (src->X_md) in emit_ldxhl()
1441 if (src->X_op == O_register) in emit_ldxhl()
1443 if (src->X_add_number>7) in emit_ldxhl()
1452 *q = opcode + src->X_add_number; in emit_ldxhl()
1468 emit_byte (src, BFD_RELOC_8); in emit_ldxhl()
1474 emit_ldreg (int dest, expressionS * src) in emit_ldreg() argument
1484 if (src->X_md == 0 && src->X_op == O_register && src->X_add_number == REG_A) in emit_ldreg()
1495 if ((src->X_md) && src->X_op != O_register && src->X_op != O_md1) in emit_ldreg()
1499 emit_word (src); in emit_ldreg()
[all …]
Dtc-ppc.h196 #define OBJ_COPY_SYMBOL_ATTRIBUTES(dest,src) \ argument
199 S_SET_SEGMENT (dest, S_GET_SEGMENT (src)); \
200 symbol_get_tc (dest)->u = symbol_get_tc (src)->u; \
201 symbol_get_tc (dest)->align = symbol_get_tc (src)->align; \
202 symbol_get_tc (dest)->symbol_class = symbol_get_tc (src)->symbol_class; \
203 symbol_get_tc (dest)->within = symbol_get_tc (src)->within; \
/toolchain/binutils/binutils-2.27/gprof/
Dsymtab.c81 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.27/libiberty/
Ddyn-string.c184 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 …]
Dmemchr.c24 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()
Dbcopy.c15 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()
Dstpcpy.c39 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()
/toolchain/binutils/binutils-2.27/gas/
Dmacro.c747 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.27/gas/testsuite/gas/tic54x/
Dopcodes.s11 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.27/ld/testsuite/config/
Ddefault.exp303 set src ${basename}.c
305 set f [open $src "w"]
309 set src [remote_download host $src]
311 set plt_available [run_host_cmd_yesno "$CC" "$flags -c -fplt $src -o $output"]
312 remote_file host delete $src
314 file delete $src
341 set src ${basename}.c
343 set f [open $src "w"]
347 set src [remote_download host $src]
349 set nopie_available [run_host_cmd_yesno "$CC" "$flags -fno-PIE -no-pie $src -o $output"]
[all …]
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-plugin/
Dpr12365c.c11 const char *src = (const char *) s; in my_memcpy() local
13 *dst++ = *src++; in my_memcpy()
21 const char *src = (const char *) s; in my_bcopy() local
22 if (src >= dst) in my_bcopy()
24 *dst++ = *src++; in my_bcopy()
28 src += n; in my_bcopy()
30 *--dst = *--src; in my_bcopy()
/toolchain/binutils/binutils-2.27/
Dinstall-sh79 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.27/bfd/doc/
Dchew.c209 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.27/ld/testsuite/lib/
Dld-lib.exp1832 set src ${basename}.c
1834 set f [open $src "w"]
1838 set src [remote_download host $src]
1840 …set lto_available_saved [run_host_cmd_yesno "$CC" "$flags -flto -fuse-linker-plugin $src -o $outpu…
1841 remote_file host delete $src
1843 file delete $src
1875 set src ${basename}.c
1877 set f [open $src "w"]
1881 set src [remote_download host $src]
1883 …ved [run_host_cmd_yesno "$CC" "$flags -flto -ffat-lto-objects -fuse-linker-plugin $src -o $output"]
[all …]
/toolchain/binutils/binutils-2.27/include/coff/
Dti.h104 #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

12345678