Home | History | Annotate | Download | only in bfd

Lines Matching refs:asect

48 /* Read  relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
54 elf64_sparc_slurp_one_reloc_table (bfd *abfd, asection *asect,
76 relents = asect->relocation + canon_reloc_count (asect);
98 relent->address = rela.r_offset - asect->vma;
132 canon_reloc_count (asect) += relent - relents;
148 elf64_sparc_slurp_reloc_table (bfd *abfd, asection *asect,
151 struct bfd_elf_section_data * const d = elf_section_data (asect);
156 if (asect->relocation != NULL)
161 if ((asect->flags & SEC_RELOC) == 0
162 || asect->reloc_count == 0)
168 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset)
169 || (rel_hdr2 && asect->rel_filepos == rel_hdr2->sh_offset));
173 /* Note that ASECT->RELOC_COUNT tends not to be accurate in this
177 if (asect->size == 0)
181 asect->reloc_count = NUM_SHDR_ENTRIES (rel_hdr);
185 amt = asect->reloc_count;
187 asect->relocation = (arelent *) bfd_alloc (abfd, amt);
188 if (asect->relocation == NULL)
193 canon_reloc_count (asect) = 0;
196 && !elf64_sparc_slurp_one_reloc_table (abfd, asect, rel_hdr, symbols,
201 && !elf64_sparc_slurp_one_reloc_table (abfd, asect, rel_hdr2, symbols,