/toolchain/binutils/binutils-2.25/libiberty/ |
D | simple-object-mach-o.c | 616 char namebuf[MACH_O_NAME_LEN * 2 + 2]; in simple_object_mach_o_segment() local 674 memcpy (namebuf, sechdr + sectname_offset, MACH_O_NAME_LEN); in simple_object_mach_o_segment() 675 namebuf[MACH_O_NAME_LEN] = '\0'; in simple_object_mach_o_segment() 677 name = &namebuf[0]; in simple_object_mach_o_segment() 703 name = &namebuf[0]; in simple_object_mach_o_segment() 704 memcpy (namebuf, (char *) sechdr + segname_offset, MACH_O_NAME_LEN); in simple_object_mach_o_segment() 705 namebuf[MACH_O_NAME_LEN] = '\0'; in simple_object_mach_o_segment() 706 l = strlen (namebuf); in simple_object_mach_o_segment() 707 namebuf[l] = ','; in simple_object_mach_o_segment() 708 memcpy (namebuf + l + 1, (char *) sechdr + sectname_offset, in simple_object_mach_o_segment() [all …]
|
D | pex-win32.c | 190 char *namebuf, *foundbuf; in mingw_rootify() local 209 namebuf = XNEWVEC (char, ++maxlen); in mingw_rootify() 212 if (!namebuf || !foundbuf) in mingw_rootify() 215 free (namebuf); in mingw_rootify() 223 for (i = 0; RegEnumKey (hKey, i, namebuf, maxlen) == ERROR_SUCCESS; i++) in mingw_rootify() 225 int match = strcasecmp (namebuf, MINGW_NAME); in mingw_rootify() 228 if (match > 0 && strncasecmp (namebuf, MINGW_NAME, MINGW_NAME_LEN) > 0) in mingw_rootify() 230 if (strcasecmp (namebuf, foundbuf) > 0) in mingw_rootify() 231 strcpy (foundbuf, namebuf); in mingw_rootify() 233 free (namebuf); in mingw_rootify()
|
D | simple-object-coff.c | 373 char namebuf[SCNNMLEN + 1]; in simple_object_coff_find_sections() local 380 memcpy (namebuf, scnname, SCNNMLEN); in simple_object_coff_find_sections() 381 namebuf[SCNNMLEN] = '\0'; in simple_object_coff_find_sections() 382 name = &namebuf[0]; in simple_object_coff_find_sections() 383 if (namebuf[0] == '/') in simple_object_coff_find_sections() 388 strindex = strtol (namebuf + 1, &end, 10); in simple_object_coff_find_sections()
|
D | simple-object-xcoff.c | 429 char namebuf[SCNNMLEN + 1]; in simple_object_xcoff_find_sections() local 436 memcpy (namebuf, scnname, SCNNMLEN); in simple_object_xcoff_find_sections() 437 namebuf[SCNNMLEN] = '\0'; in simple_object_xcoff_find_sections() 438 name = &namebuf[0]; in simple_object_xcoff_find_sections() 439 if (namebuf[0] == '/') in simple_object_xcoff_find_sections() 444 strindex = strtol (namebuf + 1, &end, 10); in simple_object_xcoff_find_sections()
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | sunos.c | 920 char *namebuf, *p; in sunos_add_dynamic_symbols() local 945 namebuf = bfd_malloc (alc + 1); in sunos_add_dynamic_symbols() 946 if (namebuf == NULL) in sunos_add_dynamic_symbols() 948 p = namebuf; in sunos_add_dynamic_symbols() 957 free (namebuf); in sunos_add_dynamic_symbols() 965 free (namebuf); in sunos_add_dynamic_symbols() 969 if ((bfd_size_type) (p - namebuf) >= alc) in sunos_add_dynamic_symbols() 974 n = bfd_realloc (namebuf, alc + 1); in sunos_add_dynamic_symbols() 977 free (namebuf); in sunos_add_dynamic_symbols() 980 p = n + (p - namebuf); in sunos_add_dynamic_symbols() [all …]
|
D | pef.c | 156 char *namebuf; in bfd_pef_parse_traceback_table() local 169 namebuf = bfd_alloc (abfd, name.name_len + 1); in bfd_pef_parse_traceback_table() 170 if (namebuf == NULL) in bfd_pef_parse_traceback_table() 173 memcpy (namebuf, buf + pos + offset, name.name_len); in bfd_pef_parse_traceback_table() 174 namebuf[name.name_len] = '\0'; in bfd_pef_parse_traceback_table() 177 if (namebuf[0] == '.') in bfd_pef_parse_traceback_table() 178 memmove (namebuf, namebuf + 1, name.name_len + 1); in bfd_pef_parse_traceback_table() 180 sym->name = namebuf; in bfd_pef_parse_traceback_table()
|
D | peXXigen.c | 143 char namebuf[SYMNMLEN + 1]; in _bfd_XXi_swap_sym_in() local 153 name = _bfd_coff_internal_syment_name (abfd, in, namebuf); in _bfd_XXi_swap_sym_in() 177 if (name == namebuf) in _bfd_XXi_swap_sym_in() 179 name = (const char *) bfd_alloc (abfd, strlen (namebuf) + 1); in _bfd_XXi_swap_sym_in() 186 strcpy ((char *) name, namebuf); in _bfd_XXi_swap_sym_in()
|
D | elf.c | 2475 char namebuf[64]; in _bfd_elf_make_section_from_phdr() local 2485 sprintf (namebuf, "%s%d%s", type_name, hdr_index, split ? "a" : ""); in _bfd_elf_make_section_from_phdr() 2486 len = strlen (namebuf) + 1; in _bfd_elf_make_section_from_phdr() 2490 memcpy (name, namebuf, len); in _bfd_elf_make_section_from_phdr() 2521 sprintf (namebuf, "%s%d%s", type_name, hdr_index, split ? "b" : ""); in _bfd_elf_make_section_from_phdr() 2522 len = strlen (namebuf) + 1; in _bfd_elf_make_section_from_phdr() 2526 memcpy (name, namebuf, len); in _bfd_elf_make_section_from_phdr()
|
/toolchain/binutils/binutils-2.25/gas/config/ |
D | tc-arm.c | 2282 char *namebuf, *nameend ATTRIBUTE_UNUSED; in create_neon_reg_alias() local 2388 namebuf = (char *) alloca (namelen + 1); in create_neon_reg_alias() 2389 strncpy (namebuf, newname, namelen); in create_neon_reg_alias() 2390 namebuf[namelen] = '\0'; in create_neon_reg_alias() 2392 insert_neon_reg_alias (namebuf, basereg->number, basetype, in create_neon_reg_alias() 2396 for (p = namebuf; *p; p++) in create_neon_reg_alias() 2399 if (strncmp (namebuf, newname, namelen)) in create_neon_reg_alias() 2400 insert_neon_reg_alias (namebuf, basereg->number, basetype, in create_neon_reg_alias() 2404 for (p = namebuf; *p; p++) in create_neon_reg_alias() 2407 if (strncmp (namebuf, newname, namelen)) in create_neon_reg_alias() [all …]
|
D | tc-xtensa.c | 2336 static char namebuf[10]; in xtensa_translate_old_userreg_ops() local 2337 sprintf (namebuf, "%d", xtensa_sysreg_number (isa, sr)); in xtensa_translate_old_userreg_ops() 2338 if (strcmp (namebuf, opname + 1) == 0) in xtensa_translate_old_userreg_ops()
|