| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | netbsd-core.c | 60 asection *asect; in netbsd_core_file_p() local 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() 164 if (asect == NULL) in netbsd_core_file_p() 168 asect->vma = 0; in netbsd_core_file_p() 169 asect->filepos = offset + wcookie_offset; in netbsd_core_file_p() [all …]
|
| H A D | osf-core.c | 68 asection *asect; local 70 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); 71 if (!asect) 74 asect->size = size; 75 asect->vma = vma; 76 asect->filepos = filepos; 77 asect->alignment_power = 8; 79 return asect;
|
| H A D | elf64-sparc.c | 76 relents = asect->relocation + canon_reloc_count (asect); in elf64_sparc_slurp_one_reloc_table() 98 relent->address = rela.r_offset - asect->vma; in elf64_sparc_slurp_one_reloc_table() 132 canon_reloc_count (asect) += relent - relents; in elf64_sparc_slurp_one_reloc_table() 156 if (asect->relocation != NULL) in elf64_sparc_slurp_reloc_table() 161 if ((asect->flags & SEC_RELOC) == 0 in elf64_sparc_slurp_reloc_table() 162 || asect->reloc_count == 0) in elf64_sparc_slurp_reloc_table() 177 if (asect->size == 0) in elf64_sparc_slurp_reloc_table() 181 asect->reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf64_sparc_slurp_reloc_table() 185 amt = asect->reloc_count; in elf64_sparc_slurp_reloc_table() 188 if (asect->relocation == NULL) in elf64_sparc_slurp_reloc_table() [all …]
|
| H A D | sco5-core.c | 64 asection *asect; local 66 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); 67 if (!asect) 69 asect->size = size; 70 asect->vma = vma; 71 asect->filepos = filepos; 72 asect->alignment_power = 2; 74 return asect;
|
| H A D | rs6000-core.c | 290 asection *asect; in make_bfd_asection() local 292 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection() 293 if (!asect) in make_bfd_asection() 296 asect->size = size; in make_bfd_asection() 297 asect->vma = vma; in make_bfd_asection() 298 asect->filepos = filepos; in make_bfd_asection() 299 asect->alignment_power = 8; in make_bfd_asection() 301 return asect; in make_bfd_asection()
|
| H A D | bout.c | 686 if (asect->relocation) in b_out_slurp_reloc_table() 692 if (asect == obj_datasec (abfd)) in b_out_slurp_reloc_table() 694 else if (asect == obj_textsec (abfd)) in b_out_slurp_reloc_table() 696 else if (asect == obj_bsssec (abfd)) in b_out_slurp_reloc_table() 876 asect->relocation = reloc_cache; in b_out_slurp_reloc_table() 877 asect->reloc_count = count; in b_out_slurp_reloc_table() 920 b_out_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in b_out_get_reloc_upper_bound() argument 928 if (asect->flags & SEC_CONSTRUCTOR) in b_out_get_reloc_upper_bound() 931 if (asect == obj_datasec (abfd)) in b_out_get_reloc_upper_bound() 936 if (asect == obj_textsec (abfd)) in b_out_get_reloc_upper_bound() [all …]
|
| H A D | bfd.c | 708 bfd_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in bfd_get_reloc_upper_bound() argument 716 return BFD_SEND (abfd, _get_reloc_upper_bound, (abfd, asect)); in bfd_get_reloc_upper_bound() 742 sec_ptr asect, in bfd_canonicalize_reloc() argument 753 (abfd, asect, location, symbols)); in bfd_canonicalize_reloc() 773 sec_ptr asect, in bfd_set_reloc() argument 777 asect->orelocation = location; in bfd_set_reloc() 778 asect->reloc_count = count; in bfd_set_reloc()
|
| H A D | elf64-mips.c | 2551 relent->address = rela.r_offset - asect->vma; in mips_elf64_slurp_one_reloc_table() 2561 asect->reloc_count += (relent - relents) / 3; in mips_elf64_slurp_one_reloc_table() 2581 mips_elf64_slurp_reloc_table (bfd *abfd, asection *asect, in mips_elf64_slurp_reloc_table() argument 2592 if (asect->relocation != NULL) in mips_elf64_slurp_reloc_table() 2597 if ((asect->flags & SEC_RELOC) == 0 in mips_elf64_slurp_reloc_table() 2598 || asect->reloc_count == 0) in mips_elf64_slurp_reloc_table() 2607 BFD_ASSERT (asect->rel_filepos == rel_hdr->sh_offset in mips_elf64_slurp_reloc_table() 2617 if (asect->size == 0) in mips_elf64_slurp_reloc_table() 2633 asect->reloc_count = 0; in mips_elf64_slurp_reloc_table() 2635 if (! mips_elf64_slurp_one_reloc_table (abfd, asect, in mips_elf64_slurp_reloc_table() [all …]
|
| H A D | elfcode.h | 1349 asection *asect, in elf_slurp_reloc_table_from_section() argument 1402 relent->address = rela.r_offset - asect->vma; in elf_slurp_reloc_table_from_section() 1447 asection *asect, in elf_slurp_reloc_table() argument 1459 if (asect->relocation != NULL) in elf_slurp_reloc_table() 1464 if ((asect->flags & SEC_RELOC) == 0 in elf_slurp_reloc_table() 1465 || asect->reloc_count == 0) in elf_slurp_reloc_table() 1474 BFD_ASSERT (asect->rel_filepos == rel_hdr->sh_offset in elf_slurp_reloc_table() 1484 if (asect->size == 0) in elf_slurp_reloc_table() 1498 if (!elf_slurp_reloc_table_from_section (abfd, asect, in elf_slurp_reloc_table() 1505 && !elf_slurp_reloc_table_from_section (abfd, asect, in elf_slurp_reloc_table() [all …]
|
| H A D | elf.c | 2728 asection *asect, in _bfd_elf_init_reloc_shdr() argument 2902 if ((asect->flags & SEC_GROUP) == 0 && elf_group_name (asect) != NULL) in elf_fake_sections() 2907 if (asect->size == 0 in elf_fake_sections() 2942 asect, in elf_fake_sections() 2943 asect->use_rela_p)) in elf_fake_sections() 3404 asection *asect; in elf_map_symbols() local 3412 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols() 3415 max_index = asect->index; in elf_map_symbols() 3458 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols() 3489 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols() [all …]
|
| H A D | coffcode.h | 4256 coff_slurp_line_table (bfd *abfd, asection *asect) in coff_slurp_line_table() argument 4262 BFD_ASSERT (asect->lineno == NULL); in coff_slurp_line_table() 4282 while (counter < asect->lineno_count) in coff_slurp_line_table() 4322 - bfd_section_vma (abfd, asect); in coff_slurp_line_table() 4331 asect->lineno = lineno_cache; in coff_slurp_line_table() 4845 if (asect->relocation) in coff_slurp_reloc_table() 4847 if (asect->reloc_count == 0) in coff_slurp_reloc_table() 4849 if (asect->flags & SEC_CONSTRUCTOR) in coff_slurp_reloc_table() 4862 for (idx = 0; idx < asect->reloc_count; idx++) in coff_slurp_reloc_table() 4914 cache_ptr->address -= asect->vma; in coff_slurp_reloc_table() [all …]
|
| H A D | aoutx.h | 2264 if (asect->relocation) in NAME() 2267 if (asect->flags & SEC_CONSTRUCTOR) in NAME() 2270 if (asect == obj_datasec (abfd)) in NAME() 2272 else if (asect == obj_textsec (abfd)) in NAME() 2274 else if (asect == obj_bsssec (abfd)) in NAME() 2328 asect->relocation = reloc_cache; in NAME() 2436 if (asect->flags & SEC_CONSTRUCTOR) in NAME() 2439 if (asect == obj_datasec (abfd)) in NAME() 2444 if (asect == obj_textsec (abfd)) in NAME() 2449 if (asect == obj_bsssec (abfd)) in NAME() [all …]
|
| H A D | coff-i386.c | 393 cache_ptr->addend += asect->vma; \
|
| H A D | coff-x86_64.c | 493 cache_ptr->addend += asect->vma; \
|
| H A D | pe-mips.c | 377 cache_ptr->addend += asect->vma; \
|
| H A D | ieee.c | 2029 ieee_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in ieee_get_reloc_upper_bound() argument 2031 if ((asect->flags & SEC_DEBUGGING) != 0) in ieee_get_reloc_upper_bound() 2035 return (asect->reloc_count + 1) * sizeof (arelent *); in ieee_get_reloc_upper_bound()
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | bfd-target.c | 37 add_to_section_table (struct bfd *abfd, struct bfd_section *asect, in add_to_section_table() argument 44 aflag = bfd_get_section_flags (abfd, asect); in add_to_section_table() 47 if (bfd_section_size (abfd, asect) == 0) in add_to_section_table() 50 pp->end->the_bfd_section = asect; in add_to_section_table() 51 pp->end->addr = bfd_section_vma (abfd, asect); in add_to_section_table() 52 pp->end->endaddr = pp->end->addr + bfd_section_size (abfd, asect); in add_to_section_table()
|
| H A D | maint.c | 319 asection *asect, in print_bfd_section_info() argument 322 flagword flags = bfd_get_section_flags (abfd, asect); in print_bfd_section_info() 323 const char *name = bfd_section_name (abfd, asect); in print_bfd_section_info() 331 addr = bfd_section_vma (abfd, asect); in print_bfd_section_info() 332 endaddr = addr + bfd_section_size (abfd, asect); in print_bfd_section_info() 333 maint_print_section_info (name, flags, addr, endaddr, asect->filepos); in print_bfd_section_info() 339 struct obj_section *asect, in print_objfile_section_info() argument 342 flagword flags = bfd_get_section_flags (abfd, asect->the_bfd_section); in print_objfile_section_info() 343 const char *name = bfd_section_name (abfd, asect->the_bfd_section); in print_objfile_section_info() 349 maint_print_section_info (name, flags, asect->addr, asect->endaddr, in print_objfile_section_info() [all …]
|
| H A D | objfiles.c | 76 add_to_objfile_sections (struct bfd *abfd, struct bfd_section *asect, in add_to_objfile_sections() argument 83 aflag = bfd_get_section_flags (abfd, asect); in add_to_objfile_sections() 85 if (!(aflag & SEC_ALLOC) && !(TARGET_KEEP_SECTION (asect))) in add_to_objfile_sections() 88 if (0 == bfd_section_size (abfd, asect)) in add_to_objfile_sections() 92 section.the_bfd_section = asect; in add_to_objfile_sections() 94 section.addr = bfd_section_vma (abfd, asect); in add_to_objfile_sections() 95 section.endaddr = section.addr + bfd_section_size (abfd, asect); in add_to_objfile_sections()
|
| H A D | exec.c | 337 add_to_section_table (bfd *abfd, struct bfd_section *asect, in add_to_section_table() argument 343 aflag = bfd_get_section_flags (abfd, asect); in add_to_section_table() 346 if (0 == bfd_section_size (abfd, asect)) in add_to_section_table() 349 (*table_pp)->the_bfd_section = asect; in add_to_section_table() 350 (*table_pp)->addr = bfd_section_vma (abfd, asect); in add_to_section_table() 351 (*table_pp)->endaddr = (*table_pp)->addr + bfd_section_size (abfd, asect); in add_to_section_table()
|
| H A D | corelow.c | 252 add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg) in add_to_thread_list() argument 257 if (strncmp (bfd_section_name (abfd, asect), ".reg/", 5) != 0) in add_to_thread_list() 260 thread_id = atoi (bfd_section_name (abfd, asect) + 5); in add_to_thread_list() 267 && asect->filepos == reg_sect->filepos) /* Did we find .reg? */ in add_to_thread_list()
|
| H A D | xcoffread.c | 1701 find_linenos (struct bfd *abfd, struct bfd_section *asect, void *vpinfo) in find_linenos() argument 1707 count = asect->lineno_count; in find_linenos() 1709 if (!DEPRECATED_STREQ (asect->name, ".text") || count == 0) in find_linenos() 1714 offset = asect->line_filepos; in find_linenos()
|
| H A D | coffread.c | 471 find_linenos (bfd *abfd, struct bfd_section *asect, void *vpinfo) in find_linenos() argument 478 count = asect->lineno_count; in find_linenos() 487 offset = asect->line_filepos; in find_linenos()
|
| /freebsd-12.1/gnu/usr.bin/gdb/kgdb/ |
| H A D | kld.c | 204 struct bfd_section *asect = sec->the_bfd_section; in adjust_section_address() local 214 bfd_get_section_alignment(abfd, asect)); in adjust_section_address() 216 sec->endaddr = sec->addr + bfd_section_size(abfd, asect); in adjust_section_address()
|
| /freebsd-12.1/gnu/usr.bin/gdb/libgdb/ |
| H A D | fbsd-threads.c | 275 fbsd_core_get_first_lwp (bfd *abfd, asection *asect, void *obj) in fbsd_core_get_first_lwp() argument 277 if (strncmp (bfd_section_name (abfd, asect), ".reg/", 5) != 0) in fbsd_core_get_first_lwp() 283 *(lwpid_t *)obj = atoi (bfd_section_name (abfd, asect) + 5); in fbsd_core_get_first_lwp() 1090 fbsd_core_check_lwp (bfd *abfd, asection *asect, void *obj) in fbsd_core_check_lwp() argument 1094 if (strncmp (bfd_section_name (abfd, asect), ".reg/", 5) != 0) in fbsd_core_check_lwp() 1101 lwp = atoi (bfd_section_name (abfd, asect) + 5); in fbsd_core_check_lwp()
|