/toolchain/binutils/binutils-2.25/libiberty/ |
D | setenv.c | 89 const size_t namelen = strlen (name); in setenv() local 98 if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') in setenv() 120 new_environ[size] = (char *) malloc (namelen + 1 + vallen); in setenv() 133 memcpy (new_environ[size], name, namelen); in setenv() 134 new_environ[size][namelen] = '='; in setenv() 135 memcpy (&new_environ[size][namelen + 1], value, vallen); in setenv() 144 if (len + 1 < namelen + 1 + vallen) in setenv() 147 char *new_string = (char *) malloc (namelen + 1 + vallen); in setenv() 155 memcpy (*ep, name, namelen); in setenv() 156 (*ep)[namelen] = '='; in setenv() [all …]
|
D | simple-object-coff.c | 554 size_t namelen; in simple_object_coff_write_scnhdr() local 564 namelen = strlen (name); in simple_object_coff_write_scnhdr() 565 if (namelen <= SCNNMLEN) in simple_object_coff_write_scnhdr() 572 *name_offset += namelen + 1; in simple_object_coff_write_scnhdr() 740 size_t namelen; in simple_object_coff_write_to_file() local 744 namelen = strlen (section->name); in simple_object_coff_write_to_file() 750 if (namelen > SCNNMLEN) in simple_object_coff_write_to_file() 757 namelen + 1, &errmsg, err)) in simple_object_coff_write_to_file() 759 name_offset += namelen + 1; in simple_object_coff_write_to_file()
|
D | simple-object-xcoff.c | 639 size_t namelen; in simple_object_xcoff_write_scnhdr() local 648 namelen = strlen (name); in simple_object_xcoff_write_scnhdr() 649 if (namelen <= SCNNMLEN) in simple_object_xcoff_write_scnhdr() 656 *name_offset += namelen + 1; in simple_object_xcoff_write_scnhdr() 834 size_t namelen; in simple_object_xcoff_write_to_file() local 838 namelen = strlen (section->name); in simple_object_xcoff_write_to_file() 844 if (namelen > SCNNMLEN) in simple_object_xcoff_write_to_file() 851 namelen + 1, &errmsg, err)) in simple_object_xcoff_write_to_file() 853 name_offset += namelen + 1; in simple_object_xcoff_write_to_file()
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | elf-attrs.c | 452 unsigned namelen; in _bfd_elf_parse_attributes() local 464 namelen = strnlen ((char *) p, section_len) + 1; in _bfd_elf_parse_attributes() 465 if (namelen == 0 || namelen >= section_len) in _bfd_elf_parse_attributes() 467 section_len -= namelen; in _bfd_elf_parse_attributes() 475 p += namelen + section_len; in _bfd_elf_parse_attributes() 479 p += namelen; in _bfd_elf_parse_attributes()
|
D | archive.c | 472 bfd_size_type namelen = 0; in _bfd_generic_read_ar_hdr_mag() local 521 namelen = atoi (&hdr.ar_name[3]); in _bfd_generic_read_ar_hdr_mag() 522 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() 523 parsed_size -= namelen; in _bfd_generic_read_ar_hdr_mag() 524 extra_size = namelen; in _bfd_generic_read_ar_hdr_mag() 532 if (bfd_bread (filename, namelen, abfd) != namelen) in _bfd_generic_read_ar_hdr_mag() 539 filename[namelen] = '\0'; in _bfd_generic_read_ar_hdr_mag() 557 namelen = e - hdr.ar_name; in _bfd_generic_read_ar_hdr_mag() 562 namelen = ar_maxnamelen (abfd); in _bfd_generic_read_ar_hdr_mag() 565 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() [all …]
|
D | mach-o.c | 1139 unsigned int namelen; in bfd_mach_o_write_dylinker() local 1147 namelen = strlen (cmd->name_str) + 1; in bfd_mach_o_write_dylinker() 1148 if (bfd_bwrite (cmd->name_str, namelen, abfd) != namelen) in bfd_mach_o_write_dylinker() 1151 if (bfd_mach_o_pad_command (abfd, namelen) < 0) in bfd_mach_o_write_dylinker() 1162 unsigned int namelen; in bfd_mach_o_write_dylib() local 1173 namelen = strlen (cmd->name_str) + 1; in bfd_mach_o_write_dylib() 1174 if (bfd_bwrite (cmd->name_str, namelen, abfd) != namelen) in bfd_mach_o_write_dylib() 1177 if (bfd_mach_o_pad_command (abfd, namelen) < 0) in bfd_mach_o_write_dylib() 3731 unsigned int namelen; in bfd_mach_o_read_dylinker() local 3740 namelen = command->len - nameoff; in bfd_mach_o_read_dylinker() [all …]
|
D | pef.c | 812 size_t max, namelen; in bfd_pef_parse_function_stubs() local 821 namelen = 0; in bfd_pef_parse_function_stubs() 828 namelen++; in bfd_pef_parse_function_stubs() 833 name = bfd_alloc (abfd, strlen (sprefix) + namelen + 1); in bfd_pef_parse_function_stubs() 837 snprintf (name, strlen (sprefix) + namelen + 1, "%s%s", in bfd_pef_parse_function_stubs()
|
D | ecofflink.c | 1279 size_t namelen; in bfd_ecoff_debug_one_external() local 1281 namelen = strlen (name); in bfd_ecoff_debug_one_external() 1284 < symhdr->issExtMax + namelen + 1) in bfd_ecoff_debug_one_external() 1288 symhdr->issExtMax + namelen + 1)) in bfd_ecoff_debug_one_external() 1314 symhdr->issExtMax += namelen + 1; in bfd_ecoff_debug_one_external()
|
D | vms-lib.c | 1370 size_t namelen = strlen (name); in _bfd_vms_lib_get_module() local 1371 char *name1 = bfd_alloc (res, namelen + 4 + 1); in _bfd_vms_lib_get_module() 1372 memcpy (name1, name, namelen); in _bfd_vms_lib_get_module() 1373 strcpy (name1 + namelen, ".obj"); in _bfd_vms_lib_get_module()
|
D | elf32-metag.c | 1175 size_t namelen; in metag_add_stub() local 1179 namelen = strlen (link_sec->name); in metag_add_stub() 1180 len = namelen + sizeof (STUB_SUFFIX); in metag_add_stub() 1185 memcpy (s_name, link_sec->name, namelen); in metag_add_stub() 1186 memcpy (s_name + namelen, STUB_SUFFIX, sizeof (STUB_SUFFIX)); in metag_add_stub()
|
D | elf32-nios2.c | 1331 size_t namelen; in nios2_add_stub() local 1335 namelen = strlen (link_sec->name); in nios2_add_stub() 1336 len = namelen + sizeof (STUB_SUFFIX); in nios2_add_stub() 1341 memcpy (s_name, link_sec->name, namelen); in nios2_add_stub() 1342 memcpy (s_name + namelen, STUB_SUFFIX, sizeof (STUB_SUFFIX)); in nios2_add_stub()
|
D | elflink.c | 3993 size_t namelen, verlen, newlen; in elf_link_add_object_symbols() local 4052 namelen = strlen (name); in elf_link_add_object_symbols() 4054 newlen = namelen + verlen + 2; in elf_link_add_object_symbols() 4062 memcpy (newname, name, namelen); in elf_link_add_object_symbols() 4063 p = newname + namelen; in elf_link_add_object_symbols() 5720 size_t namelen, verlen, newlen; in bfd_elf_size_dynamic_sections() local 5726 namelen = strlen (name) + (leading_char != '\0'); in bfd_elf_size_dynamic_sections() 5729 newlen = namelen + verlen + 3; in bfd_elf_size_dynamic_sections() 5735 memcpy (newname + (leading_char != '\0'), name, namelen); in bfd_elf_size_dynamic_sections() 5738 p = newname + namelen; in bfd_elf_size_dynamic_sections()
|
D | elfnn-aarch64.c | 2319 size_t namelen; in _bfd_aarch64_create_stub_section() local 2323 namelen = strlen (section->name); in _bfd_aarch64_create_stub_section() 2324 len = namelen + sizeof (STUB_SUFFIX); in _bfd_aarch64_create_stub_section() 2329 memcpy (s_name, section->name, namelen); in _bfd_aarch64_create_stub_section() 2330 memcpy (s_name + namelen, STUB_SUFFIX, sizeof (STUB_SUFFIX)); in _bfd_aarch64_create_stub_section()
|
D | vms-alpha.c | 181 unsigned char namelen; member 1086 entry->namelen = len; in add_symbol() 5020 if (PRIV (syms)[j]->namelen == symlen in alpha_vms_slurp_relocs() 8541 sym->namelen = len; in alpha_vms_link_output_symbol()
|
/toolchain/binutils/binutils-2.25/gold/ |
D | script-sections.cc | 50 Memory_region(const char* name, size_t namelen, unsigned int attributes, in Memory_region() argument 52 : name_(name, namelen), in Memory_region() 83 name_match(const char* name, size_t namelen) in name_match() argument 85 return (this->name_.length() == namelen in name_match() 86 && strncmp(this->name_.c_str(), name, namelen) == 0); in name_match() 658 Sections_element_assignment(const char* name, size_t namelen, in Sections_element_assignment() argument 660 : assignment_(name, namelen, false, val, provide, hidden) in Sections_element_assignment() 843 Output_section_element_assignment(const char* name, size_t namelen, in Output_section_element_assignment() argument 846 : assignment_(name, namelen, false, val, provide, hidden) in Output_section_element_assignment() 1810 Output_section_definition(const char* name, size_t namelen, [all …]
|
D | script.cc | 3070 script_start_output_section(void* closurev, const char* name, size_t namelen, in script_start_output_section() argument 3075 namelen, in script_start_output_section() 3238 script_add_phdr(void* closurev, const char* name, size_t namelen, in script_add_phdr() argument 3246 ss->add_phdr(name, namelen, type, includes_filehdr, includes_phdrs, in script_add_phdr() 3258 size_t namelen; member 3276 script_phdr_string_to_type(void* closurev, const char* name, size_t namelen) in script_phdr_string_to_type() argument 3281 if (namelen == phdr_type_names[i].namelen in script_phdr_string_to_type() 3282 && strncmp(name, phdr_type_names[i].name, namelen) == 0) in script_phdr_string_to_type() 3297 script_set_section_region(void* closurev, const char* name, size_t namelen, in script_set_section_region() argument 3306 static_cast<int>(namelen), name); in script_set_section_region() [all …]
|
D | script-sections.h | 97 start_output_section(const char* name, size_t namelen, 185 add_phdr(const char* name, size_t namelen, unsigned int type,
|
D | script-c.h | 343 script_start_output_section(void* closure, const char* name, size_t namelen, 403 script_add_phdr(void* closure, const char* name, size_t namelen,
|
D | script.h | 333 Symbol_assignment(const char* name, size_t namelen, bool is_defsym, in Symbol_assignment() argument 335 : name_(name, namelen), val_(val), is_defsym_(is_defsym), in Symbol_assignment()
|
D | symtab.cc | 1178 int namelen = 0; in add_from_relobj() local 1188 namelen = ver - name; in add_from_relobj() 1195 namelen = ver - name; in add_from_relobj() 1209 namelen = strlen(name); in add_from_relobj() 1281 name = this->namepool_.add_with_length(name, namelen, true, in add_from_relobj()
|
/toolchain/binutils/binutils-2.25/binutils/ |
D | size.c | 515 int namelen = strlen (bfd_section_name (file, sec)); in sysv_internal_sizer() local 517 if (namelen > svi_namelen) in sysv_internal_sizer() 518 svi_namelen = namelen; in sysv_internal_sizer()
|
D | elfedit.c | 322 size_t namelen; in process_archive() local 363 namelen = strlen (name); in process_archive() 378 name, namelen); in process_archive()
|
D | readelf.c | 12883 unsigned int namelen; in process_attributes() local 12911 namelen = strnlen ((char *) p, attr_len) + 1; in process_attributes() 12912 if (namelen == 0 || namelen >= attr_len) in process_attributes() 12932 p += namelen; in process_attributes() 12933 attr_len -= namelen; in process_attributes() 15193 size_t namelen; in process_archive() local 15231 namelen = strlen (name); in process_archive() 15245 char * member_file_name = adjust_relative_path (file_name, name, namelen); in process_archive()
|
/toolchain/binutils/binutils-2.25/opcodes/ |
D | mips-dis.c | 706 choose_abi_by_name (const char *name, unsigned int namelen) in choose_abi_by_name() argument 712 if (strncmp (mips_abi_choices[i].name, name, namelen) == 0 in choose_abi_by_name() 713 && strlen (mips_abi_choices[i].name) == namelen) in choose_abi_by_name() 720 choose_arch_by_name (const char *name, unsigned int namelen) in choose_arch_by_name() argument 726 if (strncmp (mips_arch_choices[i].name, name, namelen) == 0 in choose_arch_by_name() 727 && strlen (mips_arch_choices[i].name) == namelen) in choose_arch_by_name()
|
/toolchain/binutils/binutils-2.25/intl/ |
D | loadmsgcat.c | 1094 nls_uint32 namelen = local 1097 if (!(namelen > 0 && name[namelen - 1] == '\0'))
|