| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | netbsd-core.c | 60 asection *asect; in netbsd_core_file_p() local 129 asect = bfd_make_section_anyway_with_flags (abfd, sname, flags); in netbsd_core_file_p() 130 if (asect == NULL) in netbsd_core_file_p() 133 asect->size = coreseg.c_size; in netbsd_core_file_p() 134 asect->vma = coreseg.c_addr; in netbsd_core_file_p() 135 asect->filepos = offset; in netbsd_core_file_p() 136 asect->alignment_power = 2; in netbsd_core_file_p() 158 asect->size = wcookie_offset; in netbsd_core_file_p() 162 asect = bfd_make_section_anyway_with_flags (abfd, ".wcookie", in netbsd_core_file_p() 164 if (asect == NULL) in netbsd_core_file_p() [all …]
|
| H A D | cisco-core.c | 93 sec_ptr asect; in cisco_core_file_validate() local 244 asect = bfd_make_section_anyway_with_flags (abfd, ".data", flags); in cisco_core_file_validate() 245 if (asect == NULL) in cisco_core_file_validate() 248 asect->size = statbuf.st_size; in cisco_core_file_validate() 249 asect->vma = rambase; in cisco_core_file_validate() 250 asect->filepos = 0; in cisco_core_file_validate() 256 asect = bfd_make_section_anyway_with_flags (abfd, ".crash", flags); in cisco_core_file_validate() 257 if (asect == NULL) in cisco_core_file_validate() 259 asect->vma = 0; in cisco_core_file_validate() 260 asect->filepos = crashinfo_offset; in cisco_core_file_validate() [all …]
|
| H A D | hpux-core.c | 107 asection *asect; in make_bfd_asection() local 116 asect = bfd_make_section_anyway_with_flags (abfd, newname, flags); in make_bfd_asection() 117 if (!asect) in make_bfd_asection() 120 asect->size = size; in make_bfd_asection() 121 asect->vma = vma; in make_bfd_asection() 122 asect->filepos = bfd_tell (abfd); in make_bfd_asection() 123 asect->alignment_power = alignment_power; in make_bfd_asection() 125 return asect; in make_bfd_asection() 305 asection *asect = bfd_sections_find_if (abfd, thread_section_p, NULL); in hpux_core_core_file_p() local 308 if (asect != NULL) in hpux_core_core_file_p() [all …]
|
| H A D | elf64-sparc.c | 70 elf64_sparc_slurp_one_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_one_reloc_table() argument 90 relents = asect->relocation + canon_reloc_count (asect); in elf64_sparc_slurp_one_reloc_table() 112 relent->address = rela.r_offset - asect->vma; in elf64_sparc_slurp_one_reloc_table() 124 abfd, asect, i, (long) ELF64_R_SYM (rela.r_info)); in elf64_sparc_slurp_one_reloc_table() 162 canon_reloc_count (asect) += relent - relents; in elf64_sparc_slurp_one_reloc_table() 175 elf64_sparc_slurp_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_reloc_table() argument 178 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf64_sparc_slurp_reloc_table() 183 if (asect->relocation != NULL) in elf64_sparc_slurp_reloc_table() 188 if ((asect->flags & SEC_RELOC) == 0 in elf64_sparc_slurp_reloc_table() 189 || asect->reloc_count == 0) in elf64_sparc_slurp_reloc_table() [all …]
|
| H A D | lynx-core.c | 67 asection *asect; in make_bfd_asection() local 76 asect = bfd_make_section_with_flags (abfd, newname, flags); in make_bfd_asection() 77 if (!asect) in make_bfd_asection() 80 asect->size = size; in make_bfd_asection() 81 asect->vma = vma; in make_bfd_asection() 82 asect->filepos = filepos; in make_bfd_asection() 83 asect->alignment_power = 2; in make_bfd_asection() 85 return asect; in make_bfd_asection()
|
| H A D | osf-core.c | 59 asection *asect; in make_bfd_asection() local 61 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 62 if (!asect) in make_bfd_asection() 65 asect->size = size; in make_bfd_asection() 66 asect->vma = vma; in make_bfd_asection() 67 asect->filepos = filepos; in make_bfd_asection() 68 asect->alignment_power = 8; in make_bfd_asection() 70 return asect; in make_bfd_asection()
|
| H A D | irix-core.c | 155 asection *asect; in make_bfd_asection() local 157 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 158 if (!asect) in make_bfd_asection() 161 asect->size = size; in make_bfd_asection() 162 asect->vma = vma; in make_bfd_asection() 163 asect->filepos = filepos; in make_bfd_asection() 164 asect->alignment_power = 4; in make_bfd_asection() 166 return asect; in make_bfd_asection()
|
| H A D | wasm-module.c | 246 wasm_scan_name_function_section (bfd *abfd, sec_ptr asect) in wasm_scan_name_function_section() argument 257 p = asect->contents; in wasm_scan_name_function_section() 258 end = asect->contents + asect->size; in wasm_scan_name_function_section() 491 asection *asect, in wasm_register_section() argument 495 int idx = wasm_section_name_to_code (asect->name); in wasm_register_section() 500 numbered_sections[idx] = asect; in wasm_register_section() 520 sec_ptr asect, in wasm_compute_custom_section_file_position() argument 529 idx = wasm_section_name_to_code (asect->name); in wasm_compute_custom_section_file_position() 534 if (startswith (asect->name, WASM_SECTION_PREFIX)) in wasm_compute_custom_section_file_position() 536 const char *name = asect->name + strlen (WASM_SECTION_PREFIX); in wasm_compute_custom_section_file_position() [all …]
|
| H A D | hppabsd-core.c | 80 asection *asect; in make_bfd_asection() local 82 asect = bfd_make_section_with_flags (abfd, name, flags); in make_bfd_asection() 83 if (!asect) in make_bfd_asection() 86 asect->size = size; in make_bfd_asection() 87 asect->filepos = offset; in make_bfd_asection() 88 asect->alignment_power = alignment_power; in make_bfd_asection() 90 return asect; in make_bfd_asection()
|
| H A D | sco5-core.c | 57 asection *asect; in make_bfd_asection() local 59 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 60 if (!asect) in make_bfd_asection() 62 asect->size = size; in make_bfd_asection() 63 asect->vma = vma; in make_bfd_asection() 64 asect->filepos = filepos; in make_bfd_asection() 65 asect->alignment_power = 2; in make_bfd_asection() 67 return asect; in make_bfd_asection()
|
| H A D | i386lynx.c | 374 sec_ptr asect, in NAME() 383 if (asect->relocation) in NAME() 386 if (asect->flags & SEC_CONSTRUCTOR) in NAME() 389 if (asect == obj_datasec (abfd)) in NAME() 395 if (asect == obj_textsec (abfd)) in NAME() 405 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in NAME() 450 asect->relocation = reloc_cache; in NAME() 451 asect->reloc_count = count; in NAME()
|
| H A D | rs6000-core.c | 317 asection *asect; in make_bfd_asection() local 319 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 320 if (!asect) in make_bfd_asection() 323 asect->size = size; in make_bfd_asection() 324 asect->vma = vma; in make_bfd_asection() 325 asect->filepos = filepos; in make_bfd_asection() 326 asect->alignment_power = 8; in make_bfd_asection() 328 return asect; in make_bfd_asection()
|
| H A D | elfcode.h | 1457 asection *asect, in elf_slurp_reloc_table_from_section() argument 1508 relent->address = rela.r_offset - asect->vma; in elf_slurp_reloc_table_from_section() 1519 abfd, asect, i, (long) ELF_R_SYM (rela.r_info)); in elf_slurp_reloc_table_from_section() 1557 asection *asect, in elf_slurp_reloc_table() argument 1562 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf_slurp_reloc_table() 1570 if (asect->relocation != NULL) in elf_slurp_reloc_table() 1575 if ((asect->flags & SEC_RELOC) == 0 in elf_slurp_reloc_table() 1576 || asect->reloc_count == 0) in elf_slurp_reloc_table() 1585 if (asect->reloc_count != reloc_count + reloc_count2) in elf_slurp_reloc_table() 1587 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | netbsd-core.c | 60 asection *asect; in netbsd_core_file_p() local 129 asect = bfd_make_section_anyway_with_flags (abfd, sname, flags); in netbsd_core_file_p() 130 if (asect == NULL) in netbsd_core_file_p() 133 asect->size = coreseg.c_size; in netbsd_core_file_p() 134 asect->vma = coreseg.c_addr; in netbsd_core_file_p() 135 asect->filepos = offset; in netbsd_core_file_p() 136 asect->alignment_power = 2; in netbsd_core_file_p() 158 asect->size = wcookie_offset; in netbsd_core_file_p() 162 asect = bfd_make_section_anyway_with_flags (abfd, ".wcookie", in netbsd_core_file_p() 164 if (asect == NULL) in netbsd_core_file_p() [all …]
|
| H A D | cisco-core.c | 93 sec_ptr asect; in cisco_core_file_validate() local 244 asect = bfd_make_section_anyway_with_flags (abfd, ".data", flags); in cisco_core_file_validate() 245 if (asect == NULL) in cisco_core_file_validate() 248 asect->size = statbuf.st_size; in cisco_core_file_validate() 249 asect->vma = rambase; in cisco_core_file_validate() 250 asect->filepos = 0; in cisco_core_file_validate() 256 asect = bfd_make_section_anyway_with_flags (abfd, ".crash", flags); in cisco_core_file_validate() 257 if (asect == NULL) in cisco_core_file_validate() 259 asect->vma = 0; in cisco_core_file_validate() 260 asect->filepos = crashinfo_offset; in cisco_core_file_validate() [all …]
|
| H A D | hpux-core.c | 107 asection *asect; in make_bfd_asection() local 116 asect = bfd_make_section_anyway_with_flags (abfd, newname, flags); in make_bfd_asection() 117 if (!asect) in make_bfd_asection() 120 asect->size = size; in make_bfd_asection() 121 asect->vma = vma; in make_bfd_asection() 122 asect->filepos = bfd_tell (abfd); in make_bfd_asection() 123 asect->alignment_power = alignment_power; in make_bfd_asection() 125 return asect; in make_bfd_asection() 302 asection *asect = bfd_sections_find_if (abfd, thread_section_p, NULL); in hpux_core_core_file_p() local 305 if (asect != NULL) in hpux_core_core_file_p() [all …]
|
| H A D | elf64-sparc.c | 81 elf64_sparc_slurp_one_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_one_reloc_table() argument 101 relents = asect->relocation + canon_reloc_count (asect); in elf64_sparc_slurp_one_reloc_table() 123 relent->address = rela.r_offset - asect->vma; in elf64_sparc_slurp_one_reloc_table() 135 abfd, asect, i, (long) ELF64_R_SYM (rela.r_info)); in elf64_sparc_slurp_one_reloc_table() 173 canon_reloc_count (asect) += relent - relents; in elf64_sparc_slurp_one_reloc_table() 186 elf64_sparc_slurp_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_reloc_table() argument 189 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf64_sparc_slurp_reloc_table() 194 if (asect->relocation != NULL) in elf64_sparc_slurp_reloc_table() 199 if ((asect->flags & SEC_RELOC) == 0 in elf64_sparc_slurp_reloc_table() 200 || asect->reloc_count == 0) in elf64_sparc_slurp_reloc_table() [all …]
|
| H A D | lynx-core.c | 67 asection *asect; in make_bfd_asection() local 76 asect = bfd_make_section_with_flags (abfd, newname, flags); in make_bfd_asection() 77 if (!asect) in make_bfd_asection() 80 asect->size = size; in make_bfd_asection() 81 asect->vma = vma; in make_bfd_asection() 82 asect->filepos = filepos; in make_bfd_asection() 83 asect->alignment_power = 2; in make_bfd_asection() 85 return asect; in make_bfd_asection()
|
| H A D | osf-core.c | 59 asection *asect; in make_bfd_asection() local 61 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 62 if (!asect) in make_bfd_asection() 65 asect->size = size; in make_bfd_asection() 66 asect->vma = vma; in make_bfd_asection() 67 asect->filepos = filepos; in make_bfd_asection() 68 asect->alignment_power = 8; in make_bfd_asection() 70 return asect; in make_bfd_asection()
|
| H A D | irix-core.c | 155 asection *asect; in make_bfd_asection() local 157 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 158 if (!asect) in make_bfd_asection() 161 asect->size = size; in make_bfd_asection() 162 asect->vma = vma; in make_bfd_asection() 163 asect->filepos = filepos; in make_bfd_asection() 164 asect->alignment_power = 4; in make_bfd_asection() 166 return asect; in make_bfd_asection()
|
| H A D | wasm-module.c | 246 wasm_scan_name_function_section (bfd *abfd, sec_ptr asect) in wasm_scan_name_function_section() argument 257 p = asect->contents; in wasm_scan_name_function_section() 258 end = asect->contents + asect->size; in wasm_scan_name_function_section() 492 asection *asect, in wasm_register_section() argument 496 int idx = wasm_section_name_to_code (asect->name); in wasm_register_section() 501 numbered_sections[idx] = asect; in wasm_register_section() 521 sec_ptr asect, in wasm_compute_custom_section_file_position() argument 530 idx = wasm_section_name_to_code (asect->name); in wasm_compute_custom_section_file_position() 535 if (startswith (asect->name, WASM_SECTION_PREFIX)) in wasm_compute_custom_section_file_position() 537 const char *name = asect->name + strlen (WASM_SECTION_PREFIX); in wasm_compute_custom_section_file_position() [all …]
|
| H A D | hppabsd-core.c | 80 asection *asect; in make_bfd_asection() local 82 asect = bfd_make_section_with_flags (abfd, name, flags); in make_bfd_asection() 83 if (!asect) in make_bfd_asection() 86 asect->size = size; in make_bfd_asection() 87 asect->filepos = offset; in make_bfd_asection() 88 asect->alignment_power = alignment_power; in make_bfd_asection() 90 return asect; in make_bfd_asection()
|
| H A D | i386lynx.c | 374 sec_ptr asect, in NAME() 383 if (asect->relocation) in NAME() 386 if (asect->flags & SEC_CONSTRUCTOR) in NAME() 389 if (asect == obj_datasec (abfd)) in NAME() 395 if (asect == obj_textsec (abfd)) in NAME() 405 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in NAME() 450 asect->relocation = reloc_cache; in NAME() 451 asect->reloc_count = count; in NAME()
|
| H A D | rs6000-core.c | 317 asection *asect; in make_bfd_asection() local 319 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 320 if (!asect) in make_bfd_asection() 323 asect->size = size; in make_bfd_asection() 324 asect->vma = vma; in make_bfd_asection() 325 asect->filepos = filepos; in make_bfd_asection() 326 asect->alignment_power = 8; in make_bfd_asection() 328 return asect; in make_bfd_asection()
|
| H A D | elfcode.h | 1541 asection *asect, in elf_slurp_reloc_table_from_section() argument 1592 relent->address = rela.r_offset - asect->vma; in elf_slurp_reloc_table_from_section() 1603 abfd, asect, i, (long) ELF_R_SYM (rela.r_info)); in elf_slurp_reloc_table_from_section() 1641 asection *asect, in elf_slurp_reloc_table() argument 1646 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf_slurp_reloc_table() 1654 if (asect->relocation != NULL) in elf_slurp_reloc_table() 1659 if ((asect->flags & SEC_RELOC) == 0 in elf_slurp_reloc_table() 1660 || asect->reloc_count == 0) in elf_slurp_reloc_table() 1669 if (asect->reloc_count != reloc_count + reloc_count2) in elf_slurp_reloc_table() 1671 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table() [all …]
|