| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | compress.c | 80 bfd_compress_section_contents (bfd *abfd, sec_ptr sec, in bfd_compress_section_contents() argument 94 = bfd_is_section_compressed_with_header (abfd, sec, in bfd_compress_section_contents() 150 sec->size = orig_uncompressed_size; in bfd_compress_section_contents() 162 bfd_set_section_alignment (sec, orig_uncompressed_alignment_pow); in bfd_compress_section_contents() 164 sec->contents = buffer; in bfd_compress_section_contents() 165 sec->compress_status = COMPRESS_SECTION_DONE; in bfd_compress_section_contents() 170 bfd_update_compression_header (abfd, buffer, sec); in bfd_compress_section_contents() 192 bfd_update_compression_header (abfd, buffer, sec); in bfd_compress_section_contents() 198 sec->contents = uncompressed_buffer; in bfd_compress_section_contents() 199 sec->compress_status = COMPRESS_SECTION_NONE; in bfd_compress_section_contents() [all …]
|
| H A D | merge.c | 91 asection *sec; member 292 asection *sec = secinfo->sec; in sec_merge_emit() local 295 unsigned int opb = bfd_octets_per_byte (abfd, sec); in sec_merge_emit() 296 int alignment_power = sec->output_section->alignment_power * opb; in sec_merge_emit() 341 off = sec->size - off; in sec_merge_emit() 363 _bfd_add_merge_section (bfd *abfd, void **psinfo, asection *sec, in _bfd_add_merge_section() argument 372 unsigned int opb = bfd_octets_per_byte (abfd, sec); in _bfd_add_merge_section() 375 || (sec->flags & SEC_MERGE) == 0) in _bfd_add_merge_section() 378 if (sec->size == 0 in _bfd_add_merge_section() 379 || (sec->flags & SEC_EXCLUDE) != 0 in _bfd_add_merge_section() [all …]
|
| H A D | mmo.c | 351 #define mmo_section_data(sec) \ argument 352 ((struct mmo_section_data_struct *) (sec)->used_by_bfd) 367 asection *sec; member 462 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section() local 464 if (sec == NULL) in mmo_make_section() 477 sec = bfd_make_section (abfd, newsecname); in mmo_make_section() 480 return sec; in mmo_make_section() 592 mmo_section_has_contents (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p ATTRIBUTE_UNUSED) in mmo_section_has_contents() argument 595 return bfd_section_size (sec) != 0; in mmo_section_has_contents() 638 mmo_find_sec_w_addr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p) in mmo_find_sec_w_addr() argument [all …]
|
| H A D | elf-eh-frame.c | 234 && (c1->cie_inf->u.cie.u.sec->output_section in cie_eq() 235 == c2->cie_inf->u.cie.u.sec->output_section) in cie_eq() 269 h = iterative_hash_object (c->cie_inf->u.cie.u.sec->output_section, h); in cie_compute_hash() 331 const asection *sec) in next_cie_fde_offset() argument 338 return sec->size; in next_cie_fde_offset() 494 asection *sec) in bfd_elf_record_eh_frame_entry() argument 518 hdr_info->u.compact.entries[hdr_info->array_count++] = sec; in bfd_elf_record_eh_frame_entry() 526 asection *sec, struct elf_reloc_cookie *cookie) in _bfd_elf_parse_eh_frame_entry() argument 536 if (sec->size == 0 in _bfd_elf_parse_eh_frame_entry() 537 || sec->sec_info_type != SEC_INFO_TYPE_NONE) in _bfd_elf_parse_eh_frame_entry() [all …]
|
| H A D | aix5ppc-core.c | 58 asection *sec; in xcoff64_core_p() local 126 sec = bfd_make_section_anyway_with_flags (abfd, ".stack", flags); in xcoff64_core_p() 127 if (NULL == sec) in xcoff64_core_p() 130 sec->size = core.c_size; in xcoff64_core_p() 131 sec->vma = core.c_stackorg; in xcoff64_core_p() 132 sec->filepos = core.c_stack; in xcoff64_core_p() 136 sec = bfd_make_section_anyway_with_flags (abfd, ".reg", flags); in xcoff64_core_p() 137 if (NULL == sec) in xcoff64_core_p() 140 sec->size = sizeof (struct __context64); in xcoff64_core_p() 141 sec->vma = 0; in xcoff64_core_p() [all …]
|
| H A D | elf32-ip2k.c | 344 asection *sec, in ip2k_is_switch_table_128() argument 352 if (addr + 4 > sec->size) in ip2k_is_switch_table_128() 424 asection *sec, in ip2k_is_switch_table_256() argument 432 if (addr + 4 > sec->size) in ip2k_is_switch_table_256() 481 asection *sec, in ip2k_nominal_page_bits() argument 485 bfd_vma page = PAGENO (BASEADDR (sec) + addr); in ip2k_nominal_page_bits() 491 if (PAGENO (BASEADDR (sec)) == page) in ip2k_nominal_page_bits() 498 while (PAGENO (BASEADDR (sec) + addr - 2) == page) in ip2k_nominal_page_bits() 508 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits() 512 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits() [all …]
|
| H A D | elf-vxworks.c | 194 asection *sec = (*hash_ptr)->root.u.def.section; in elf_vxworks_emit_relocs() local 195 int this_idx = sec->output_section->target_index; in elf_vxworks_emit_relocs() 200 irela[j].r_addend += sec->output_offset; in elf_vxworks_emit_relocs() 218 asection * sec; in elf_vxworks_final_write_processing() local 221 sec = bfd_get_section_by_name (abfd, ".rel.plt.unloaded"); in elf_vxworks_final_write_processing() 222 if (!sec) in elf_vxworks_final_write_processing() 223 sec = bfd_get_section_by_name (abfd, ".rela.plt.unloaded"); in elf_vxworks_final_write_processing() 224 if (sec) in elf_vxworks_final_write_processing() 226 d = elf_section_data (sec); in elf_vxworks_final_write_processing() 228 sec = bfd_get_section_by_name (abfd, ".plt"); in elf_vxworks_final_write_processing() [all …]
|
| H A D | elf-m10200.c | 363 asection *sec; in mn10200_elf_relocate_section() local 374 sec = NULL; in mn10200_elf_relocate_section() 378 sec = local_sections[r_symndx]; in mn10200_elf_relocate_section() 379 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in mn10200_elf_relocate_section() 387 h, sec, relocation, in mn10200_elf_relocate_section() 391 if (sec != NULL && discarded_section (sec)) in mn10200_elf_relocate_section() 402 info, sec, h == NULL); in mn10200_elf_relocate_section() 416 name = bfd_section_name (sec); in mn10200_elf_relocate_section() 463 mn10200_elf_relax_delete_bytes (bfd *abfd, asection *sec, in mn10200_elf_relax_delete_bytes() argument 477 sec_shndx = _bfd_elf_section_from_bfd_section (abfd, sec); in mn10200_elf_relax_delete_bytes() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | compress.c | 151 asection *sec) in bfd_update_compression_header() argument 162 struct bfd_elf_section_data * esd = elf_section_data (sec); in bfd_update_compression_header() 168 elf_section_flags (sec) |= SHF_COMPRESSED; in bfd_update_compression_header() 174 bfd_put_32 (abfd, sec->size, &echdr->ch_size); in bfd_update_compression_header() 175 bfd_put_32 (abfd, 1u << sec->alignment_power, in bfd_update_compression_header() 178 bfd_set_section_alignment (sec, 2); in bfd_update_compression_header() 186 bfd_put_64 (abfd, sec->size, &echdr->ch_size); in bfd_update_compression_header() 187 bfd_put_64 (abfd, UINT64_C (1) << sec->alignment_power, in bfd_update_compression_header() 190 bfd_set_section_alignment (sec, 3); in bfd_update_compression_header() 197 elf_section_flags (sec) &= ~SHF_COMPRESSED; in bfd_update_compression_header() [all …]
|
| H A D | aix5ppc-core.c | 58 asection *sec; in xcoff64_core_p() local 126 sec = bfd_make_section_anyway_with_flags (abfd, ".stack", flags); in xcoff64_core_p() 127 if (NULL == sec) in xcoff64_core_p() 130 sec->size = core.c_size; in xcoff64_core_p() 131 sec->vma = core.c_stackorg; in xcoff64_core_p() 132 sec->filepos = core.c_stack; in xcoff64_core_p() 136 sec = bfd_make_section_anyway_with_flags (abfd, ".reg", flags); in xcoff64_core_p() 137 if (NULL == sec) in xcoff64_core_p() 140 sec->size = sizeof (struct __context64); in xcoff64_core_p() 141 sec->vma = 0; in xcoff64_core_p() [all …]
|
| H A D | mmo.c | 351 #define mmo_section_data(sec) \ argument 352 ((struct mmo_section_data_struct *) (sec)->used_by_bfd) 367 asection *sec; member 462 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section() local 464 if (sec == NULL) in mmo_make_section() 475 sec = bfd_make_section (abfd, newsecname); in mmo_make_section() 478 return sec; in mmo_make_section() 588 mmo_section_has_contents (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p ATTRIBUTE_UNUSED) in mmo_section_has_contents() argument 591 return bfd_section_size (sec) != 0; in mmo_section_has_contents() 634 mmo_find_sec_w_addr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p) in mmo_find_sec_w_addr() argument [all …]
|
| H A D | elf-eh-frame.c | 234 && (c1->cie_inf->u.cie.u.sec->output_section in cie_eq() 235 == c2->cie_inf->u.cie.u.sec->output_section) in cie_eq() 269 h = iterative_hash_object (c->cie_inf->u.cie.u.sec->output_section, h); in cie_compute_hash() 331 const asection *sec) in next_cie_fde_offset() argument 338 return sec->size; in next_cie_fde_offset() 494 asection *sec) in bfd_elf_record_eh_frame_entry() argument 518 hdr_info->u.compact.entries[hdr_info->array_count++] = sec; in bfd_elf_record_eh_frame_entry() 526 asection *sec, struct elf_reloc_cookie *cookie) in _bfd_elf_parse_eh_frame_entry() argument 536 if (sec->size == 0 in _bfd_elf_parse_eh_frame_entry() 537 || sec->sec_info_type != SEC_INFO_TYPE_NONE) in _bfd_elf_parse_eh_frame_entry() [all …]
|
| H A D | elf32-ip2k.c | 344 asection *sec, in ip2k_is_switch_table_128() argument 352 if (addr + 4 > sec->size) in ip2k_is_switch_table_128() 424 asection *sec, in ip2k_is_switch_table_256() argument 432 if (addr + 4 > sec->size) in ip2k_is_switch_table_256() 481 asection *sec, in ip2k_nominal_page_bits() argument 485 bfd_vma page = PAGENO (BASEADDR (sec) + addr); in ip2k_nominal_page_bits() 491 if (PAGENO (BASEADDR (sec)) == page) in ip2k_nominal_page_bits() 498 while (PAGENO (BASEADDR (sec) + addr - 2) == page) in ip2k_nominal_page_bits() 508 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits() 512 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits() [all …]
|
| H A D | merge.c | 140 asection *sec; member 497 sz = secinfo->sec->rawsize; in prepare_offsetmap() 519 asection *sec = secinfo->sec; in sec_merge_emit() local 520 file_ptr offset = sec->output_offset; in sec_merge_emit() 523 unsigned int opb = bfd_octets_per_byte (abfd, sec); in sec_merge_emit() 524 int alignment_power = sec->output_section->alignment_power * opb; in sec_merge_emit() 573 off = sec->size - off; in sec_merge_emit() 595 _bfd_add_merge_section (bfd *abfd, void **psinfo, asection *sec, in _bfd_add_merge_section() argument 603 unsigned int opb = bfd_octets_per_byte (abfd, sec); in _bfd_add_merge_section() 606 || (sec->flags & SEC_MERGE) == 0) in _bfd_add_merge_section() [all …]
|
| H A D | elf-vxworks.c | 194 asection *sec = (*hash_ptr)->root.u.def.section; in elf_vxworks_emit_relocs() local 195 int this_idx = sec->output_section->target_index; in elf_vxworks_emit_relocs() 200 irela[j].r_addend += sec->output_offset; in elf_vxworks_emit_relocs() 218 asection * sec; in elf_vxworks_final_write_processing() local 221 sec = bfd_get_section_by_name (abfd, ".rel.plt.unloaded"); in elf_vxworks_final_write_processing() 222 if (!sec) in elf_vxworks_final_write_processing() 223 sec = bfd_get_section_by_name (abfd, ".rela.plt.unloaded"); in elf_vxworks_final_write_processing() 224 if (sec) in elf_vxworks_final_write_processing() 226 d = elf_section_data (sec); in elf_vxworks_final_write_processing() 228 sec = bfd_get_section_by_name (abfd, ".plt"); in elf_vxworks_final_write_processing() [all …]
|
| H A D | elf-sframe.c | 100 sframe_decoder_init_func_bfdinfo (asection *sec, in sframe_decoder_init_func_bfdinfo() argument 119 if ((sec->flags & SEC_LINKER_CREATED) && cookie->rels == NULL) in sframe_decoder_init_func_bfdinfo() 187 asection *sec, struct elf_reloc_cookie *cookie) in _bfd_elf_parse_sframe() argument 195 if (sec->size == 0 in _bfd_elf_parse_sframe() 196 || (sec->flags & SEC_HAS_CONTENTS) == 0 in _bfd_elf_parse_sframe() 197 || sec->sec_info_type != SEC_INFO_TYPE_NONE) in _bfd_elf_parse_sframe() 203 if (bfd_is_abs_section (sec->output_section)) in _bfd_elf_parse_sframe() 211 if (!bfd_malloc_and_get_section (abfd, sec, &sfbuf)) in _bfd_elf_parse_sframe() 218 sf_size = sec->size; in _bfd_elf_parse_sframe() 227 if (!sframe_decoder_init_func_bfdinfo (sec, sfd_info, cookie)) in _bfd_elf_parse_sframe() [all …]
|
| H A D | elf32-epiphany.c | 179 epiphany_elf_relax_section (bfd *abfd, asection *sec, in epiphany_elf_relax_section() argument 203 first_section = sec; in epiphany_elf_relax_section() 206 if (first_section == sec) in epiphany_elf_relax_section() 216 || sec->reloc_count == 0 in epiphany_elf_relax_section() 217 || (sec->flags & SEC_RELOC) == 0 in epiphany_elf_relax_section() 218 || (sec->flags & SEC_HAS_CONTENTS) == 0 in epiphany_elf_relax_section() 219 || (sec->flags & SEC_CODE) == 0) in epiphany_elf_relax_section() 224 internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, in epiphany_elf_relax_section() 245 if (elf_section_data (sec)->this_hdr.contents != NULL) in epiphany_elf_relax_section() 246 contents = elf_section_data (sec)->this_hdr.contents; in epiphany_elf_relax_section() [all …]
|
| H A D | elf-m10200.c | 363 asection *sec; in mn10200_elf_relocate_section() local 374 sec = NULL; in mn10200_elf_relocate_section() 378 sec = local_sections[r_symndx]; in mn10200_elf_relocate_section() 379 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in mn10200_elf_relocate_section() 387 h, sec, relocation, in mn10200_elf_relocate_section() 391 if (sec != NULL && discarded_section (sec)) in mn10200_elf_relocate_section() 402 info, sec, h == NULL); in mn10200_elf_relocate_section() 416 name = bfd_section_name (sec); in mn10200_elf_relocate_section() 463 mn10200_elf_relax_delete_bytes (bfd *abfd, asection *sec, in mn10200_elf_relax_delete_bytes() argument 477 sec_shndx = _bfd_elf_section_from_bfd_section (abfd, sec); in mn10200_elf_relax_delete_bytes() [all …]
|
| H A D | elf32-xtensa.c | 1051 asection *sec, in elf_xtensa_check_relocs() argument 1072 rel_end = relocs + sec->reloc_count; in elf_xtensa_check_relocs() 1160 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_xtensa_check_relocs() 1167 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in elf_xtensa_check_relocs() 1325 elf_xtensa_gc_mark_hook (asection *sec, in elf_xtensa_gc_mark_hook() argument 1341 if (xtensa_is_property_section (sec)) in elf_xtensa_gc_mark_hook() 1352 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym); in elf_xtensa_gc_mark_hook() 2556 asection *sec; in elf_xtensa_relocate_section() local 2580 sec = NULL; in elf_xtensa_relocate_section() 2599 sec = local_sections[r_symndx]; in elf_xtensa_relocate_section() [all …]
|
| /netbsd-src/sys/arch/x68k/stand/common/ |
| H A D | exec_sub.c | 19 const struct execkern_section *sec); 24 DPRINT_SEC(const char *ident, const struct execkern_section *sec) in DPRINT_SEC() argument 29 sec->sec_image, sec->sec_size, sec->sec_pad); in DPRINT_SEC() 35 #define DPRINT_SEC(ident, sec) /**/ argument 48 #define SECTION(sec, ident, image, size, pad) \ argument 50 u_long *wp = (void *) sec; \ 54 DPRINT_SEC((ident), sec); \ 55 sec = (void *) wp; \ 58 #define SECTION_NOPAD(sec, ident, image, size) \ argument 59 SECTION(sec, (ident), (image), (size), 0) [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | cpu_time.c | 30 __cpu_time_1 (long *sec, long *usec) in __cpu_time_1() argument 35 *sec = user_sec + system_sec; in __cpu_time_1() 40 *sec = -1; in __cpu_time_1() 51 long sec, usec; in cpu_time_4() local 52 __cpu_time_1 (&sec, &usec); in cpu_time_4() 53 *time = sec + usec * GFC_REAL_4_LITERAL(1.e-6); in cpu_time_4() 62 long sec, usec; in cpu_time_8() local 63 __cpu_time_1 (&sec, &usec); in cpu_time_8() 64 *time = sec + usec * GFC_REAL_8_LITERAL(1.e-6); in cpu_time_8() 73 long sec, usec; in cpu_time_10() local [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | cpu_time.c | 30 __cpu_time_1 (long *sec, long *usec) in __cpu_time_1() argument 35 *sec = user_sec + system_sec; in __cpu_time_1() 40 *sec = -1; in __cpu_time_1() 51 long sec, usec; in cpu_time_4() local 52 __cpu_time_1 (&sec, &usec); in cpu_time_4() 53 *time = sec + usec * GFC_REAL_4_LITERAL(1.e-6); in cpu_time_4() 62 long sec, usec; in cpu_time_8() local 63 __cpu_time_1 (&sec, &usec); in cpu_time_8() 64 *time = sec + usec * GFC_REAL_8_LITERAL(1.e-6); in cpu_time_8() 73 long sec, usec; in cpu_time_10() local [all …]
|
| /netbsd-src/share/man/tools/ |
| H A D | cknames | 10 for sec in $DIRLST 12 /bin/ls $MANDIR/man$sec > $TMPDIR/man${sec}$$ 15 for sec in $DIRLST 17 cd $MANDIR/man$sec 19 echo "$dt\n" > $TMPDIR/not.one.line$sec 20 echo "$dt\n" > $TMPDIR/name.order$sec 21 echo "$dt\n" > $TMPDIR/file.match$sec 22 echo "$dt\n" > $TMPDIR/no.TH$sec 23 echo "$dt\n" > $TMPDIR/no.NAME$sec 34 echo $file >> $TMPDIR/no.NAME$sec [all …]
|
| /netbsd-src/sys/dev/dtv/ |
| H A D | dtv_demux.c | 495 struct dtv_ts_section *sec; in dtv_demux_read() local 505 sec = kmem_alloc(sizeof(*sec), KM_SLEEP); in dtv_demux_read() 523 *sec = demux->dd_secfilt.section[demux->dd_secfilt.rp]; in dtv_demux_read() 546 error = uiomove(sec->sec_buf, sec->sec_length, uio); in dtv_demux_read() 549 kmem_free(sec, sizeof(*sec)); in dtv_demux_read() 558 dtv_demux_check_crc(struct dtv_demux *demux, struct dtv_ts_section *sec) in dtv_demux_check_crc() argument 566 if ((sec->sec_buf[1] & 0x80) == 0) in dtv_demux_check_crc() 569 sec_crc = be32dec(&sec->sec_buf[sec->sec_length - 4]); in dtv_demux_check_crc() 570 crc = dtv_demux_crc32(&sec->sec_buf[0], sec->sec_length - 4); in dtv_demux_check_crc() 583 struct dtv_ts_section *sec; in dtv_demux_process() local [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/bpf/ |
| H A D | coreout.cc | 179 bpf_core_section_ref sec; in bpf_core_reloc_add() local 180 FOR_EACH_VEC_ELT (*bpf_core_sections, i, sec) in bpf_core_reloc_add() 181 if (strcmp (sec->name, section_name) == 0) in bpf_core_reloc_add() 183 vec_safe_push (sec->relocs, bpfcr); in bpf_core_reloc_add() 188 sec = ggc_cleared_alloc<bpf_core_section_t> (); in bpf_core_reloc_add() 190 ctf_add_string (ctfc, section_name, &sec->name_offset, CTF_AUX_STRTAB); in bpf_core_reloc_add() 194 sec->name = section_name; in bpf_core_reloc_add() 195 vec_alloc (sec->relocs, 1); in bpf_core_reloc_add() 196 vec_safe_push (sec->relocs, bpfcr); in bpf_core_reloc_add() 198 vec_safe_push (bpf_core_sections, sec); in bpf_core_reloc_add() [all …]
|