/dragonfly/crypto/libressl/crypto/bytestring/ |
H A D | bs_ber.c | 57 CBS contents; in cbs_find_indefinite() local 67 CBS_data(&contents)[header_len - 1] == 0x80) { in cbs_find_indefinite() 72 if (!CBS_skip(&contents, header_len) || in cbs_find_indefinite() 73 !cbs_find_indefinite(&contents, indefinite_found, in cbs_find_indefinite() 103 is_eoc(size_t header_len, CBS *contents) in is_eoc() argument 127 CBS contents; in cbs_convert_indefinite() local 138 if (CBS_len(&contents) == header_len) { in cbs_convert_indefinite() 139 if (is_eoc(header_len, &contents)) in cbs_convert_indefinite() 143 CBS_data(&contents)[header_len - 1] == 0x80) { in cbs_convert_indefinite() 220 if (!CBS_skip(&contents, header_len)) in cbs_convert_indefinite() [all …]
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | elf32-i386.c | 1472 bfd_byte *contents; in elf_i386_check_relocs() local 1498 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_check_relocs() 1916 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_check_relocs() 1919 free (contents); in elf_i386_check_relocs() 1924 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_check_relocs() 1935 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_check_relocs() 1936 free (contents); in elf_i386_check_relocs() 2001 bfd_byte *contents, in elf_i386_relocate_section() argument 2416 contents + offset); in elf_i386_relocate_section() 2840 contents + roff); in elf_i386_relocate_section() [all …]
|
H A D | merge.c | 99 unsigned char contents[1]; member 315 if (contents) in sec_merge_emit() 328 if (contents) in sec_merge_emit() 344 if (contents) in sec_merge_emit() 369 bfd_byte *contents; in _bfd_add_merge_section() local 463 contents = secinfo->contents; in _bfd_add_merge_section() 829 unsigned char *contents; in _bfd_write_merged_section() local 846 contents = hdr->contents; in _bfd_write_merged_section() 848 || contents == NULL) in _bfd_write_merged_section() 853 contents = NULL; in _bfd_write_merged_section() [all …]
|
H A D | elf64-x86-64.c | 1021 bfd_byte *contents, in elf_x86_64_check_tls_transition() argument 1816 bfd_byte *contents; in elf_x86_64_check_relocs() local 1842 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_check_relocs() 2321 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_check_relocs() 2324 free (contents); in elf_x86_64_check_relocs() 2329 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_check_relocs() 2340 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_check_relocs() 2341 free (contents); in elf_x86_64_check_relocs() 3422 contents + roff); in elf_x86_64_relocate_section() 3485 contents + roff - 2); in elf_x86_64_relocate_section() [all …]
|
H A D | opncls.c | 1208 bfd_byte *contents; in bfd_get_debug_link_info_1() local 1230 free (contents); in bfd_get_debug_link_info_1() 1297 bfd_byte *contents; in bfd_get_alt_debug_link_info() local 1318 free (contents); in bfd_get_alt_debug_link_info() 1769 char * contents; in bfd_fill_in_gnu_debuglink_section() local 1826 free (contents); in bfd_fill_in_gnu_debuglink_section() 1858 bfd_byte *contents; in get_build_id() local 1886 free (contents); in get_build_id() 1897 free (contents); in get_build_id() 1916 free (contents); in get_build_id() [all …]
|
H A D | elf-properties.c | 446 e_note = (Elf_External_Note *) contents; in elf_write_gnu_properties() 466 bfd_h_put_32 (abfd, datasz, contents + size + 4); in elf_write_gnu_properties() 484 contents + size); in elf_write_gnu_properties() 489 contents + size); in elf_write_gnu_properties() 597 bfd_byte *contents; in _bfd_elf_link_setup_gnu_properties() local 654 elf_section_data (sec)->this_hdr.contents = contents; in _bfd_elf_link_setup_gnu_properties() 689 bfd_byte *contents; in _bfd_elf_convert_gnu_properties() local 705 contents = (bfd_byte *) bfd_malloc (size); in _bfd_elf_convert_gnu_properties() 706 if (contents == NULL) in _bfd_elf_convert_gnu_properties() 709 *ptr = contents; in _bfd_elf_convert_gnu_properties() [all …]
|
H A D | compress.c | 160 sec->contents = buffer; in bfd_compress_section_contents() 194 sec->contents = uncompressed_buffer; in bfd_compress_section_contents() 201 sec->contents = buffer; in bfd_compress_section_contents() 342 if (sec->contents == NULL) in bfd_get_full_section_contents() 352 if (p != sec->contents) in bfd_get_full_section_contents() 353 memcpy (p, sec->contents, sz); in bfd_get_full_section_contents() 375 bfd_cache_section_contents (asection *sec, void *contents) in bfd_cache_section_contents() argument 379 sec->contents = contents; in bfd_cache_section_contents() 525 || sec->contents != NULL in bfd_init_section_decompress_status() 586 || sec->contents != NULL in bfd_init_section_compress_status() [all …]
|
H A D | simple.c | 182 bfd_byte *contents, *data; in bfd_simple_get_relocated_section_contents() local 192 contents = outbuf; in bfd_simple_get_relocated_section_contents() 193 if (!bfd_get_full_section_contents (abfd, sec, &contents)) in bfd_simple_get_relocated_section_contents() 195 return contents; in bfd_simple_get_relocated_section_contents() 264 contents = bfd_get_relocated_section_contents (abfd, in bfd_simple_get_relocated_section_contents() 270 if (contents == NULL && data != NULL) in bfd_simple_get_relocated_section_contents() 278 return contents; in bfd_simple_get_relocated_section_contents()
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | elf32-i386.c | 1869 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_check_relocs() 2361 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_check_relocs() 2364 free (contents); in elf_i386_check_relocs() 2368 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_check_relocs() 2375 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_check_relocs() 2376 free (contents); in elf_i386_check_relocs() 3100 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_convert_load() 3160 && elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_convert_load() 3163 free (contents); in elf_i386_convert_load() 3167 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_convert_load() [all …]
|
H A D | merge.c | 98 unsigned char contents[1]; member 311 if (contents) in sec_merge_emit() 324 if (contents) in sec_merge_emit() 339 if (contents) in sec_merge_emit() 366 bfd_byte *contents; in _bfd_add_merge_section() local 451 contents = secinfo->contents; in _bfd_add_merge_section() 804 unsigned char *contents; in _bfd_write_merged_section() local 821 contents = hdr->contents; in _bfd_write_merged_section() 823 || contents == NULL) in _bfd_write_merged_section() 828 contents = NULL; in _bfd_write_merged_section() [all …]
|
H A D | elf64-x86-64.c | 2166 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_check_relocs() 2763 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_check_relocs() 2766 free (contents); in elf_x86_64_check_relocs() 2770 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_check_relocs() 2777 if (elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_check_relocs() 2778 free (contents); in elf_x86_64_check_relocs() 3495 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_convert_load() 3555 && elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_convert_load() 3558 free (contents); in elf_x86_64_convert_load() 3562 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_convert_load() [all …]
|
H A D | compress.c | 156 sec->contents = buffer; in bfd_compress_section_contents() 190 sec->contents = uncompressed_buffer; in bfd_compress_section_contents() 197 sec->contents = buffer; in bfd_compress_section_contents() 310 if (sec->contents == NULL) in bfd_get_full_section_contents() 320 if (p != sec->contents) in bfd_get_full_section_contents() 321 memcpy (p, sec->contents, sz); in bfd_get_full_section_contents() 343 bfd_cache_section_contents (asection *sec, void *contents) in bfd_cache_section_contents() argument 347 sec->contents = contents; in bfd_cache_section_contents() 483 || sec->contents != NULL in bfd_init_section_decompress_status() 543 || sec->contents != NULL in bfd_init_section_compress_status() [all …]
|
H A D | elf32-or1k.c | 799 bfd_byte *contents, in or1k_elf_relocate_section() argument 1084 loc = sreloc->contents; in or1k_elf_relocate_section() 1205 loc = sreloc->contents; in or1k_elf_relocate_section() 1215 sgot->contents + gotoff); in or1k_elf_relocate_section() 1801 splt->contents); in or1k_elf_finish_dynamic_sections() 1818 splt->contents); in or1k_elf_finish_dynamic_sections() 1840 sgot->contents); in or1k_elf_finish_dynamic_sections() 1942 loc = srela->contents; in or1k_elf_finish_dynamic_symbol() 1992 loc = srela->contents; in or1k_elf_finish_dynamic_symbol() 2017 loc = s->contents; in or1k_elf_finish_dynamic_symbol() [all …]
|
H A D | opncls.c | 1178 bfd_byte *contents; in bfd_get_debug_link_info() local 1192 if (contents != NULL) in bfd_get_debug_link_info() 1193 free (contents); in bfd_get_debug_link_info() 1198 name = (char *) contents; in bfd_get_debug_link_info() 1234 bfd_byte *contents; in bfd_get_alt_debug_link_info() local 1249 if (contents != NULL) in bfd_get_alt_debug_link_info() 1250 free (contents); in bfd_get_alt_debug_link_info() 1255 name = (char *) contents; in bfd_get_alt_debug_link_info() 1635 char * contents; in bfd_fill_in_gnu_debuglink_section() local 1677 if (contents == NULL) in bfd_fill_in_gnu_debuglink_section() [all …]
|
H A D | simple.c | 182 bfd_byte *contents, *data; in bfd_simple_get_relocated_section_contents() local 192 contents = outbuf; in bfd_simple_get_relocated_section_contents() 193 if (!bfd_get_full_section_contents (abfd, sec, &contents)) in bfd_simple_get_relocated_section_contents() 195 return contents; in bfd_simple_get_relocated_section_contents() 264 contents = bfd_get_relocated_section_contents (abfd, in bfd_simple_get_relocated_section_contents() 270 if (contents == NULL && data != NULL) in bfd_simple_get_relocated_section_contents() 278 return contents; in bfd_simple_get_relocated_section_contents()
|
H A D | bfd.c | 1983 bfd_update_compression_header (bfd *abfd, bfd_byte *contents, in bfd_update_compression_header() argument 2001 = (Elf32_External_Chdr *) contents; in bfd_update_compression_header() 2010 = (Elf64_External_Chdr *) contents; in bfd_update_compression_header() 2026 memcpy (contents, "ZLIB", 4); in bfd_update_compression_header() 2027 bfd_putb64 (sec->size, contents + 4); in bfd_update_compression_header() 2054 bfd_check_compression_header (bfd *abfd, bfd_byte *contents, in bfd_check_compression_header() argument 2192 bfd_byte *contents; in bfd_convert_section_contents() local 2216 contents = *ptr; in bfd_convert_section_contents() 2246 contents = (bfd_byte *) bfd_malloc (size); in bfd_convert_section_contents() 2247 if (contents == NULL) in bfd_convert_section_contents() [all …]
|
H A D | elf-eh-frame.c | 1723 bfd_byte *contents) in _bfd_elf_write_section_eh_frame() argument 1762 memmove (contents + ent->new_offset, contents + ent->offset, ent->size); in _bfd_elf_write_section_eh_frame() 1766 memmove (contents + ent->new_offset, contents + ent->offset, ent->size); in _bfd_elf_write_section_eh_frame() 1868 buf = (contents in _bfd_elf_write_section_eh_frame() 2171 bfd_byte contents[8]; in write_compact_eh_frame_hdr() local 2182 contents[i] = 0; in write_compact_eh_frame_hdr() 2227 bfd_byte *contents; in write_dwarf_eh_frame_hdr() local 2237 if (contents == NULL) in write_dwarf_eh_frame_hdr() 2243 free (contents); in write_dwarf_eh_frame_hdr() 2249 contents[0] = 1; in write_dwarf_eh_frame_hdr() [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | elf32-i386.c | 1116 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_check_tls_transition() 1124 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_check_tls_transition() 2522 bfd_byte *contents; in elf_i386_convert_mov_to_lea() local 2554 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_convert_mov_to_lea() 2624 if (contents != NULL in elf_i386_convert_mov_to_lea() 2625 && elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_convert_mov_to_lea() 2628 free (contents); in elf_i386_convert_mov_to_lea() 2632 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_convert_mov_to_lea() 2647 if (contents != NULL in elf_i386_convert_mov_to_lea() 2648 && elf_section_data (sec)->this_hdr.contents != contents) in elf_i386_convert_mov_to_lea() [all …]
|
H A D | elf64-x86-64.c | 1098 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_check_tls_transition() 1106 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_check_tls_transition() 2551 bfd_byte *contents; in elf_x86_64_convert_mov_to_lea() local 2583 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_convert_mov_to_lea() 2654 if (contents != NULL in elf_x86_64_convert_mov_to_lea() 2655 && elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_convert_mov_to_lea() 2658 free (contents); in elf_x86_64_convert_mov_to_lea() 2662 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_convert_mov_to_lea() 2677 if (contents != NULL in elf_x86_64_convert_mov_to_lea() 2678 && elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_convert_mov_to_lea() [all …]
|
H A D | merge.c | 98 unsigned char contents[1]; member 351 bfd_byte *contents; in _bfd_add_merge_section() local 436 contents = secinfo->contents; in _bfd_add_merge_section() 460 end = secinfo->contents + sec->size; in record_section() 465 for (p = secinfo->contents; p < end; ) in record_section() 467 eltalign = p - secinfo->contents; in record_section() 480 if (!nul && !((p - secinfo->contents) & mask)) in record_section() 500 if (!nul && !((p - secinfo->contents) & mask)) in record_section() 842 p = secinfo->contents + offset - 1; in _bfd_merged_section_offset() 843 while (p >= secinfo->contents && *p) in _bfd_merged_section_offset() [all …]
|
H A D | simple.c | 158 bfd_byte *contents, *data; in bfd_simple_get_relocated_section_contents() local 167 contents = outbuf; in bfd_simple_get_relocated_section_contents() 168 if (!bfd_get_full_section_contents (abfd, sec, &contents)) in bfd_simple_get_relocated_section_contents() 170 return contents; in bfd_simple_get_relocated_section_contents() 239 contents = bfd_get_relocated_section_contents (abfd, in bfd_simple_get_relocated_section_contents() 245 if (contents == NULL && data != NULL) in bfd_simple_get_relocated_section_contents() 252 return contents; in bfd_simple_get_relocated_section_contents()
|
H A D | compress.c | 129 if (uncompressed_buffer == sec->contents) in bfd_compress_section_contents() 132 sec->contents = compressed_buffer; in bfd_compress_section_contents() 248 memcpy (p, sec->contents, sz); in bfd_get_full_section_contents() 270 bfd_cache_section_contents (asection *sec, void *contents) in bfd_cache_section_contents() argument 274 sec->contents = contents; in bfd_cache_section_contents() 341 || sec->contents != NULL in bfd_init_section_decompress_status() 407 || sec->contents != NULL in bfd_init_section_compress_status()
|
H A D | elf-eh-frame.c | 1393 bfd_byte *contents) in _bfd_elf_write_section_eh_frame() argument 1427 memmove (contents + ent->new_offset, contents + ent->offset, ent->size); in _bfd_elf_write_section_eh_frame() 1431 memmove (contents + ent->new_offset, contents + ent->offset, ent->size); in _bfd_elf_write_section_eh_frame() 1533 buf = (contents in _bfd_elf_write_section_eh_frame() 1545 + (buf - contents)); in _bfd_elf_write_section_eh_frame() 1781 bfd_byte *contents; in _bfd_elf_write_section_eh_frame_hdr() local 1790 if (contents == NULL) in _bfd_elf_write_section_eh_frame_hdr() 1796 free (contents); in _bfd_elf_write_section_eh_frame_hdr() 1802 contents[0] = 1; in _bfd_elf_write_section_eh_frame_hdr() 1816 contents[2] = DW_EH_PE_omit; in _bfd_elf_write_section_eh_frame_hdr() [all …]
|
/dragonfly/contrib/binutils-2.27/gold/ |
H A D | dwp.cc | 498 const unsigned char* contents; member 1146 const unsigned char* contents = in sized_read_unit_index() local 1181 if (pend > contents + index_len) in sized_read_unit_index() 1262 delete[] contents; in sized_read_unit_index() 1288 const unsigned char* contents = in sized_verify_dwo_list() local 1321 if (pend > contents + index_len) in sized_verify_dwo_list() 1358 delete[] contents; in sized_verify_dwo_list() 1431 delete[] contents; in copy_section() 1432 contents = remapped; in copy_section() 1438 contents = copy; in copy_section() [all …]
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | stringpool.c | 83 ggc_alloc_string_stat (const char *contents, int length MEM_STAT_DECL) in ggc_alloc_string_stat() argument 88 length = strlen (contents); in ggc_alloc_string_stat() 92 if (length == 1 && ISDIGIT (contents[0])) in ggc_alloc_string_stat() 93 return digit_string (contents[0] - '0'); in ggc_alloc_string_stat() 96 memcpy (result, contents, length); in ggc_alloc_string_stat()
|