Home
last modified time | relevance | path

Searched refs:asect (Results 1 – 25 of 40) sorted by relevance

12

/toolchain/binutils/binutils-2.25/bfd/
Dnetbsd-core.c60 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 …]
Dhpux-core.c119 asection *asect; in make_bfd_asection() local
128 asect = bfd_make_section_anyway_with_flags (abfd, newname, flags); in make_bfd_asection()
129 if (!asect) in make_bfd_asection()
132 asect->size = size; in make_bfd_asection()
133 asect->vma = vma; in make_bfd_asection()
134 asect->filepos = bfd_tell (abfd); in make_bfd_asection()
135 asect->alignment_power = alignment_power; in make_bfd_asection()
137 return asect; in make_bfd_asection()
317 asection *asect = bfd_sections_find_if (abfd, thread_section_p, NULL); in hpux_core_core_file_p() local
320 if (asect != NULL) in hpux_core_core_file_p()
[all …]
Dcisco-core.c93 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 …]
Dlynx-core.c67 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()
Dosf-core.c59 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()
Delf64-sparc.c54 elf64_sparc_slurp_one_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_one_reloc_table() argument
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()
148 elf64_sparc_slurp_reloc_table (bfd *abfd, asection *asect, in elf64_sparc_slurp_reloc_table() argument
151 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf64_sparc_slurp_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()
168 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf64_sparc_slurp_reloc_table()
[all …]
Dirix-core.c155 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()
Dhppabsd-core.c80 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()
Dsco5-core.c57 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()
Di386lynx.c374 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()
457 asect->relocation = reloc_cache; in NAME()
458 asect->reloc_count = count; in NAME()
Drs6000-core.c303 asection *asect; in make_bfd_asection() local
305 asect = bfd_make_section_anyway_with_flags (abfd, name, flags); in make_bfd_asection()
306 if (!asect) in make_bfd_asection()
309 asect->size = size; in make_bfd_asection()
310 asect->vma = vma; in make_bfd_asection()
311 asect->filepos = filepos; in make_bfd_asection()
312 asect->alignment_power = 8; in make_bfd_asection()
314 return asect; in make_bfd_asection()
Dhp300hpux.c707 MY (slurp_reloc_table) (bfd *abfd, sec_ptr asect, asymbol **symbols) in MY()
718 if (asect->relocation) in MY()
721 if (asect->flags & SEC_CONSTRUCTOR) in MY()
724 if (asect == obj_datasec (abfd)) in MY()
730 if (asect == obj_textsec (abfd)) in MY()
740 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in MY()
775 asect->relocation = reloc_cache; in MY()
776 asect->reloc_count = count; in MY()
Dbout.c671 b_out_slurp_reloc_table (bfd *abfd, sec_ptr asect, asymbol **symbols) in b_out_slurp_reloc_table() argument
685 if (asect->relocation) in b_out_slurp_reloc_table()
691 if (asect == obj_datasec (abfd)) in b_out_slurp_reloc_table()
693 else if (asect == obj_textsec (abfd)) in b_out_slurp_reloc_table()
695 else if (asect == obj_bsssec (abfd)) in b_out_slurp_reloc_table()
703 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in b_out_slurp_reloc_table()
875 asect->relocation = reloc_cache; in b_out_slurp_reloc_table()
876 asect->reloc_count = count; in b_out_slurp_reloc_table()
919 b_out_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in b_out_get_reloc_upper_bound() argument
927 if (asect->flags & SEC_CONSTRUCTOR) in b_out_get_reloc_upper_bound()
[all …]
Dbfd.c926 bfd_get_reloc_upper_bound (bfd *abfd, sec_ptr asect) in bfd_get_reloc_upper_bound() argument
934 return BFD_SEND (abfd, _get_reloc_upper_bound, (abfd, asect)); in bfd_get_reloc_upper_bound()
960 sec_ptr asect, in bfd_canonicalize_reloc() argument
971 (abfd, asect, location, symbols)); in bfd_canonicalize_reloc()
991 sec_ptr asect, in bfd_set_reloc() argument
995 asect->orelocation = location; in bfd_set_reloc()
996 asect->reloc_count = count; in bfd_set_reloc()
Delfcode.h1380 asection *asect, in elf_slurp_reloc_table_from_section() argument
1433 relent->address = rela.r_offset - asect->vma; in elf_slurp_reloc_table_from_section()
1441 abfd->filename, asect->name, i, ELF_R_SYM (rela.r_info)); in elf_slurp_reloc_table_from_section()
1478 asection *asect, in elf_slurp_reloc_table() argument
1482 struct bfd_elf_section_data * const d = elf_section_data (asect); in elf_slurp_reloc_table()
1490 if (asect->relocation != NULL) in elf_slurp_reloc_table()
1495 if ((asect->flags & SEC_RELOC) == 0 in elf_slurp_reloc_table()
1496 || asect->reloc_count == 0) in elf_slurp_reloc_table()
1504 BFD_ASSERT (asect->reloc_count == reloc_count + reloc_count2); in elf_slurp_reloc_table()
1505 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table()
[all …]
Delf.c2631 asection *asect, in _bfd_elf_init_reloc_shdr() argument
2644 amt = sizeof ".rela" + strlen (asect->name); in _bfd_elf_init_reloc_shdr()
2648 sprintf (name, "%s%s", use_rela_p ? ".rela" : ".rel", asect->name); in _bfd_elf_init_reloc_shdr()
2687 elf_fake_sections (bfd *abfd, asection *asect, void *fsarg) in elf_fake_sections() argument
2691 struct bfd_elf_section_data *esd = elf_section_data (asect); in elf_fake_sections()
2705 asect->name, FALSE); in elf_fake_sections()
2714 if ((asect->flags & SEC_ALLOC) != 0 in elf_fake_sections()
2715 || asect->user_set_vma) in elf_fake_sections()
2716 this_hdr->sh_addr = asect->vma; in elf_fake_sections()
2721 this_hdr->sh_size = asect->size; in elf_fake_sections()
[all …]
Delf32-sh64.c139 asection *asect) in sh64_elf_fake_sections() argument
141 if (sh64_elf_section_data (asect)->sh64_info != NULL) in sh64_elf_fake_sections()
143 |= sh64_elf_section_data (asect)->sh64_info->contents_flags; in sh64_elf_fake_sections()
147 if ((bfd_get_section_flags (output_bfd, asect) & SEC_SORT_ENTRIES) != 0 in sh64_elf_fake_sections()
148 && strcmp (bfd_get_section_name (output_bfd, asect), in sh64_elf_fake_sections()
Delf64-mips.c3702 mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect, in mips_elf64_slurp_one_reloc_table() argument
3842 relent->address = rela.r_offset - asect->vma; in mips_elf64_slurp_one_reloc_table()
3852 asect->reloc_count += (relent - relents) / 3; in mips_elf64_slurp_one_reloc_table()
3872 mips_elf64_slurp_reloc_table (bfd *abfd, asection *asect, in mips_elf64_slurp_reloc_table() argument
3875 struct bfd_elf_section_data * const d = elf_section_data (asect); in mips_elf64_slurp_reloc_table()
3883 if (asect->relocation != NULL) in mips_elf64_slurp_reloc_table()
3888 if ((asect->flags & SEC_RELOC) == 0 in mips_elf64_slurp_reloc_table()
3889 || asect->reloc_count == 0) in mips_elf64_slurp_reloc_table()
3897 BFD_ASSERT (asect->reloc_count == reloc_count + reloc_count2); in mips_elf64_slurp_reloc_table()
3898 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in mips_elf64_slurp_reloc_table()
[all …]
Dcoffcode.h4517 coff_slurp_line_table (bfd *abfd, asection *asect) in coff_slurp_line_table() argument
4530 BFD_ASSERT (asect->lineno == NULL); in coff_slurp_line_table()
4532 amt = ((bfd_size_type) asect->lineno_count + 1) * sizeof (alent); in coff_slurp_line_table()
4537 amt = (bfd_size_type) bfd_coff_linesz (abfd) * asect->lineno_count; in coff_slurp_line_table()
4538 native_lineno = (LINENO *) buy_and_read (abfd, asect->line_filepos, amt); in coff_slurp_line_table()
4548 asect->lineno = lineno_cache; in coff_slurp_line_table()
4553 for (counter = 0; counter < asect->lineno_count; counter++, src++) in coff_slurp_line_table()
4624 - bfd_section_vma (abfd, asect)); in coff_slurp_line_table()
4628 asect->lineno_count = cache_ptr - lineno_cache; in coff_slurp_line_table()
4646 for (i = 0; i < asect->lineno_count; i++) in coff_slurp_line_table()
[all …]
Dpdp11.c1816 NAME (aout, slurp_reloc_table) (bfd *abfd, sec_ptr asect, asymbol **symbols) in NAME()
1827 if (asect->relocation) in NAME()
1830 if (asect->flags & SEC_CONSTRUCTOR) in NAME()
1833 if (asect == obj_datasec (abfd)) in NAME()
1835 else if (asect == obj_textsec (abfd)) in NAME()
1837 else if (asect == obj_bsssec (abfd)) in NAME()
1845 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in NAME()
1908 asect->relocation = reloc_cache; in NAME()
1909 asect->reloc_count = cache_ptr - reloc_cache; in NAME()
1997 NAME (aout, get_reloc_upper_bound) (bfd *abfd, sec_ptr asect) in NAME()
[all …]
Dcoff-i860.c582 asymbol **symbols, bfd *abfd, asection *asect) in i860_reloc_processing() argument
633 cache_ptr->address -= asect->vma; in i860_reloc_processing()
Dmach-o.c1255 asection *asect) in bfd_mach_o_get_reloc_upper_bound() argument
1257 return (asect->reloc_count + 1) * sizeof (arelent *); in bfd_mach_o_get_reloc_upper_bound()
1434 bfd_mach_o_canonicalize_reloc (bfd *abfd, asection *asect, in bfd_mach_o_canonicalize_reloc() argument
1441 if (asect->reloc_count == 0) in bfd_mach_o_canonicalize_reloc()
1448 if (asect->relocation == NULL) in bfd_mach_o_canonicalize_reloc()
1450 res = bfd_malloc (asect->reloc_count * sizeof (arelent)); in bfd_mach_o_canonicalize_reloc()
1454 if (bfd_mach_o_canonicalize_relocs (abfd, asect->rel_filepos, in bfd_mach_o_canonicalize_reloc()
1455 asect->reloc_count, res, syms) < 0) in bfd_mach_o_canonicalize_reloc()
1460 asect->relocation = res; in bfd_mach_o_canonicalize_reloc()
1463 res = asect->relocation; in bfd_mach_o_canonicalize_reloc()
[all …]
Daoutx.h2274 NAME (aout, slurp_reloc_table) (bfd *abfd, sec_ptr asect, asymbol **symbols) in NAME()
2285 if (asect->relocation) in NAME()
2288 if (asect->flags & SEC_CONSTRUCTOR) in NAME()
2291 if (asect == obj_datasec (abfd)) in NAME()
2293 else if (asect == obj_textsec (abfd)) in NAME()
2295 else if (asect == obj_bsssec (abfd)) in NAME()
2306 if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0) in NAME()
2354 asect->relocation = reloc_cache; in NAME()
2355 asect->reloc_count = cache_ptr - reloc_cache; in NAME()
2454 NAME (aout, get_reloc_upper_bound) (bfd *abfd, sec_ptr asect) in NAME()
[all …]
Delf32-i370.c392 asection *asect) in i370_elf_fake_sections() argument
394 if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE) in i370_elf_fake_sections()
397 if ((asect->flags & SEC_SORT_ENTRIES) != 0) in i370_elf_fake_sections()
Dversados.c745 sec_ptr asect) in versados_get_reloc_upper_bound() argument
747 return (asect->reloc_count + 1) * sizeof (arelent *); in versados_get_reloc_upper_bound()

12