Searched refs:relocs (Results 1 - 25 of 69) sorted by relevance

123

/freebsd-10.1-release/sys/dev/drm2/radeon/
H A Dradeon_cs.c51 /* FIXME: we assume that each relocs use 4 dwords */
58 p->relocs = malloc(p->nrelocs * sizeof(struct radeon_cs_reloc),
60 if (p->relocs == NULL) {
69 if (r->handle == p->relocs[j].handle) {
70 p->relocs_ptr[i] = &p->relocs[j];
76 p->relocs[i].gobj = drm_gem_object_lookup(ddev,
79 if (p->relocs[i].gobj == NULL) {
84 p->relocs_ptr[i] = &p->relocs[i];
85 p->relocs[i].robj = gem_to_radeon_bo(p->relocs[
[all...]
/freebsd-10.1-release/contrib/binutils/binutils/
H A Dnm.c44 /* When fetching relocs, we use this structure to pass information to
50 arelent ***relocs; member in struct:get_relocs_info
741 /* This function is used to get the relocs for a particular section.
753 *data->relocs = NULL;
764 *data->relocs = xmalloc (relsize);
765 *data->relcount = bfd_canonicalize_reloc (abfd, sec, *data->relocs,
772 ++data->relocs;
829 static arelent ***relocs;
837 if (abfd != lineno_cache_rel_bfd && relocs != NULL)
840 if (relocs[
824 static arelent ***relocs; local
[all...]
H A Dcoffdump.c429 ptr->relocs[i].offset,
430 ptr->relocs[i].symbol->name,
431 ptr->relocs[i].addend);
H A Dcoffgrok.h55 struct coff_reloc *relocs; member in struct:coff_section
H A Drescoff.c379 /* Pointer to section symbol used to build RVA relocs. */
400 arelent **relocs;
502 cwi.relocs = NULL;
541 bfd_set_reloc (abfd, sec, cwi.relocs, cwi.reloc_count);
571 /* We allocated the relocs array using malloc. */
572 free (cwi.relocs);
710 the relocs array using malloc so that we can use realloc. FIXME:
722 cwi->relocs = xrealloc (cwi->relocs,
724 cwi->relocs[cw
398 arelent **relocs; member in struct:coff_write_info
[all...]
/freebsd-10.1-release/contrib/binutils/bfd/
H A Delf32-cr16.c696 irel = elf_section_data (sec)->relocs;
704 /* Adjust all the relocs. */
705 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
721 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
798 bfd_byte *contents, Elf_Internal_Rela *relocs,
812 rel = relocs;
813 relend = relocs + input_section->reloc_count;
1004 if (elf_section_data (input_section)->relocs != internal_relocs)
1017 && elf_section_data (input_section)->relocs != internal_relocs)
1046 this section does not have relocs, o
796 elf32_cr16_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument
[all...]
H A Dmep-relocs.pl26 # the relocs to be sequential (this is needed so that bfd/elf32-mep.h
55 push(@relocs, $rel);
81 $autogen = " /* This section generated from bfd/mep-relocs.pl from include/elf/mep.h. */\n";
126 for ($i=2; $i<=$#relocs; $i++) {
140 $c = "$relocs[$i],";
147 for ($i=2; $i<=$#relocs; $i++) {
157 print NEW " case R_MEP_$relocs[$i]: /* $pattern[$i] */\n";
233 for $i (2..$#relocs) {
234 printf (NEW "$pattern", $relocs[$i]) || die("$file.new write: $!");
H A Dbout.c684 struct relocation_info *relocs;
709 relocs = bfd_malloc (reloc_size);
710 if (!relocs && reloc_size != 0)
717 if (relocs != NULL)
718 free (relocs);
722 if (bfd_bread ((void *) relocs, reloc_size, abfd) != reloc_size)
725 if (relocs != NULL)
726 free (relocs);
751 for (rptr = relocs, cache_ptr = reloc_cache, counter = 0;
875 if (relocs !
683 struct relocation_info *relocs; local
[all...]
H A Dxcofflink.c60 /* The relocs to be output. */
61 struct internal_reloc *relocs; member in struct:xcoff_link_section_info
114 /* Buffer large enough to hold external relocs of any input section. */
273 /* Get the size required to hold the dynamic relocs. */
304 /* Get the dynamic relocs. */
386 /* Most dynamic relocs have the same type. FIXME: This is only
491 /* Read internal relocs for an XCOFF csect. This is a wrapper around
493 relocs which may have been cached for the enclosing section. */
504 && coff_section_data (abfd, sec)->relocs == NULL
513 || coff_section_data (abfd, enclosing)->relocs
877 xcoff_find_reloc(struct internal_reloc *relocs, bfd_size_type count, bfd_vma address) argument
961 struct internal_reloc *relocs; member in struct:reloc_info_struct
1303 struct internal_reloc *relocs; local
1447 struct internal_reloc *relocs; local
[all...]
H A Delf32-mep.c49 /* This section generated from bfd/mep-relocs.pl from include/elf/mep.h. */
133 /* This section generated from bfd/mep-relocs.pl from include/elf/mep.h. */
285 /* This section generated from bfd/mep-relocs.pl from include/elf/mep.h. */
407 /* Look through the relocs for a section during the first phase.
409 virtual table relocs for gc. */
416 const Elf_Internal_Rela * relocs)
433 rel_end = relocs + sec->reloc_count;
434 for (rel = relocs; rel < rel_end; rel++)
458 The relocs are always passed as Rela structures; if the section
463 necessary, and (if using Rela relocs an
408 mep_elf_check_relocs(bfd * abfd, struct bfd_link_info * info, asection * sec, const Elf_Internal_Rela * relocs) argument
479 mep_elf_relocate_section(bfd * output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info * info, bfd * input_bfd, asection * input_section, bfd_byte * contents, Elf_Internal_Rela * relocs, Elf_Internal_Sym * local_syms, asection ** local_sections) argument
[all...]
H A Dcoff-i386.c372 PC relative relocs.
416 input_section, contents, relocs, syms,
423 struct internal_reloc *relocs;
432 relocs, syms, sections);
H A Dsunos.c91 /* Number of dynamic relocs. */
93 /* Read in dynamic relocs. This may be reloc_std_external or
96 /* arelent structures for dynamic relocs. */
218 /* Similarly, the relocs end at the hash table. */
401 /* Return the amount of memory required for the dynamic relocs. */
421 /* Read in the dynamic relocs. */
768 /* The .dynrel section holds the dynamic relocs. The address is
1236 /* Scan the relocs for an input section using standard relocs. We
1243 reloc. FIXME: We should also handle the PIC relocs her
1246 sunos_scan_std_relocs(struct bfd_link_info *info, bfd *abfd, asection *sec ATTRIBUTE_UNUSED, const struct reloc_std_external *relocs, bfd_size_type rel_size) argument
1400 sunos_scan_ext_relocs(struct bfd_link_info *info, bfd *abfd, asection *sec ATTRIBUTE_UNUSED, const struct reloc_ext_external *relocs, bfd_size_type rel_size) argument
1686 void * relocs; local
[all...]
H A Dcoff-ppc.c31 - relocs generated by gas
110 /* As we wonder around the relocs, we'll keep the assigned toc_offset
376 From the document "" we find the following listed as used relocs:
996 contents, relocs, syms, sections)
1002 struct internal_reloc *relocs;
1023 rel = relocs;
1322 pass over the relocs, and the glue instruction extracted. */
1628 /* Rummage around all the relocs and map the toc. */
1639 /* load the relocs */
2126 output file. Set the file positions for the relocs
[all...]
H A Dlibcoff-in.h182 /* The relocs, swapped into COFF internal form. This may be NULL. */
183 struct internal_reloc *relocs; member in struct:coff_section_tdata
184 /* If this is TRUE, the relocs entry may not be freed. */
443 /* The relocs to be output. */
444 struct internal_reloc *relocs; member in struct:coff_link_section_info
494 /* Buffer large enough to hold external relocs of any input section. */
496 /* Buffer large enough to hold swapped relocs of any input section. */
H A Daoutx.h304 /* std relocs. */
965 /* ?? Do we really need to check for relocs here? */
1945 /* XXX This relies on relocs coming from a.out files. */
1962 /* PR gas/3041 a.out relocs against weak symbols
2169 /* Base relative relocs are always against the symbol table,
2239 /* Base relative relocs are always against the symbol table,
2256 /* Read and swap the relocs for a section. */
2263 void * relocs;
2300 relocs = bfd_malloc (reloc_size);
2301 if (relocs
[all...]
H A Delf64-ppc.c198 with identical R_PPC64_RELATIVE relocs, there is really no need to
199 propagate .opd relocs; The dynamic linker should be taught to
2156 /* Handle the R_PPC64_ADDR16_HA and similar relocs. */
2414 /* A copy of relocs before they are modified for --emit-relocs. */
3131 /* The linker needs to keep track of the number of relocs that it
3132 decides to copy as dynamic relocs in check_relocs for each symbol.
3144 /* Total number of relocs copied for the input section. */
3147 /* Number of pc-relative relocs copied for the input section. */
3194 /* Of those relocs tha
4386 ppc64_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
4948 Elf_Internal_Rela *relocs; local
5244 ppc64_elf_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
7832 bfd_boolean relocs; local
8277 Elf_Internal_Rela *relocs, *r; local
8375 Elf_Internal_Rela *relocs, *r; local
9787 ppc64_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument
[all...]
H A Dcofflink.c687 output file. Set the file positions for the relocs. */
777 finfo.section_info[i].relocs = NULL;
782 /* We now know the size of the relocs, so we can determine the file
808 Because of this problem, we also keep the relocs in
815 finfo.section_info[o->target_index].relocs = bfd_malloc (amt);
819 if (finfo.section_info[o->target_index].relocs == NULL
1012 the symbol indices to use for relocs against them, and we can
1013 finally write out the relocs. */
1029 irel = finfo.section_info[o->target_index].relocs;
1047 /* In PE COFF, write the count of relocs a
2825 _bfd_coff_generic_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections) argument
[all...]
H A Delf64-alpha.c671 /* Skip 12 - 16; deprecated ECOFF relocs. */
723 /* Skip 20 - 23; deprecated ECOFF relocs. */
1748 asection *sec, const Elf_Internal_Rela *relocs)
1762 In particular, any relocs in such sections should not affect GOT
1765 relocs, and there's not much point in propagating relocs to shared
1779 relend = relocs + sec->reloc_count;
1780 for (rel = relocs; rel < relend; ++rel)
2625 relocations. Avoid the loop which may want to add RELATIVE relocs
2671 relocations. Avoid the loop which may want to add RELATIVE relocs
1739 elf64_alpha_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
2890 Elf_Internal_Rela *relocs, *relend; member in struct:alpha_relax_info
3922 elf64_alpha_relocate_section_r(bfd *output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED, bfd *input_bfd, asection *input_section, bfd_byte *contents ATTRIBUTE_UNUSED, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument
4009 elf64_alpha_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument
[all...]
H A Dcoff-x86_64.c470 PC relative relocs.
516 struct internal_reloc *relocs,
523 return _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,input_section, contents,relocs, syms, sections);
511 coff_pe_amd64_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections) argument
H A Delf32-s390.c404 /* Handle the large displacement relocs. */
634 /* The s390 linker needs to keep track of the number of relocs that it
635 decides to copy as dynamic relocs in check_relocs for each symbol.
647 /* Total number of relocs copied for the input section. */
650 /* Number of pc-relative relocs copied for the input section. */
660 /* Track dynamic relocs copied for this symbol. */
962 /* Look through the relocs for a section during the first phase, and
967 elf_s390_check_relocs (abfd, info, sec, relocs)
971 const Elf_Internal_Rela *relocs;
992 rel_end = relocs
1415 elf_s390_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
1985 bfd_boolean relocs; local
[all...]
H A Delf64-s390.c428 /* Handle the large displacement relocs. */
589 /* The s390 linker needs to keep track of the number of relocs that it
590 decides to copy as dynamic relocs in check_relocs for each symbol.
602 /* Total number of relocs copied for the input section. */
605 /* Number of pc-relative relocs copied for the input section. */
615 /* Track dynamic relocs copied for this symbol. */
917 /* Look through the relocs for a section during the first phase, and
922 elf_s390_check_relocs (abfd, info, sec, relocs)
926 const Elf_Internal_Rela *relocs;
947 rel_end = relocs
1383 elf_s390_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
1959 bfd_boolean relocs; local
[all...]
H A Delf32-ppc.c45 /* Branch prediction bit for branch taken relocs. */
1180 /* The remaining relocs are from the Embedded ELF ABI, and are not
1625 /* Handle the R_PPC_ADDR16_HA and R_PPC_REL16_HA relocs. */
2307 /* The PPC linker needs to keep track of the number of relocs that it
2308 decides to copy as dynamic relocs in check_relocs for each symbol.
2320 /* Total number of relocs copied for the input section. */
2323 /* Number of pc-relative relocs copied for the input section. */
2353 /* Of those relocs that might be copied as dynamic relocs, this macro
2381 /* Track dynamic relocs copie
3032 ppc_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
3848 ppc_elf_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument
4783 bfd_boolean relocs; local
5640 ppc_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument
[all...]
/freebsd-10.1-release/contrib/binutils/ld/
H A Dpe-dll.c1137 arelent **relocs; local
1149 relocs = xmalloc (relsize);
1150 nrelocs = bfd_canonicalize_reloc (b, s, relocs, symbols);
1154 struct bfd_symbol *sym = *relocs[i]->sym_ptr_ptr;
1157 cb (relocs[i], s);
1160 free (relocs);
1196 arelent **relocs; local
1228 relocs = xmalloc (relsize);
1229 nrelocs = bfd_canonicalize_reloc (b, s, relocs, symbols);
1235 struct bfd_symbol *sym = *relocs[
[all...]
H A Dldwrite.c310 we'll never try and create an output section with more relocs
444 unsigned int relocs = 0; local
480 && (thisrelocs + relocs >= config.split_by_reloc
528 relocs = thisrelocs;
535 relocs += thisrelocs;
/freebsd-10.1-release/contrib/binutils/gas/
H A Dwrite.c125 /* We generally attach relocs to frag chains. However, after we have
126 chained these all together into a segment, any relocs we add after
127 that must be attached to a segment. This will include relocs added
189 /* Usually, we want relocs sorted numerically, but while
190 comparing to older versions of gas that have relocs
605 fprintf (stream, "sec %s relocs:\n", sec->name);
800 /* Don't try to reduce relocs which refer to non-local symbols
942 we do later on all pc-relative relocs. */
1114 arelent **relocs; local
1131 /* Extract relocs fo
[all...]

Completed in 288 milliseconds

123