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

1234

/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DArchHandler_x86_64.cpp182 normalized::Relocations &relocs) override;
771 normalized::Relocations &relocs) {
781 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
785 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
789 appendReloc(relocs, sectionOffset, sectionIndexForAtom(*ref.target()), 0,
793 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
797 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
801 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
806 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
810 appendReloc(relocs, sectionOffse
[all...]
H A DArchHandler_x86.cpp121 normalized::Relocations &relocs) override;
558 normalized::Relocations &relocs) {
570 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
574 appendReloc(relocs, sectionOffset, 0, addressForAtom(*ref.target()),
577 appendReloc(relocs, sectionOffset, sectionIndexForAtom(*ref.target()),0,
583 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
587 appendReloc(relocs, sectionOffset, 0, addressForAtom(*ref.target()),
590 appendReloc(relocs, sectionOffset, sectionIndexForAtom(*ref.target()),0,
597 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
601 appendReloc(relocs, sectionOffse
551 appendSectionRelocations( const DefinedAtom &atom, uint64_t atomSectionOffset, const Reference &ref, FindSymbolIndexForAtom symbolIndexForAtom, FindSectionIndexForAtom sectionIndexForAtom, FindAddressForAtom addressForAtom, normalized::Relocations &relocs) argument
[all...]
H A DArchHandler_arm.cpp1188 normalized::Relocations &relocs) {
1206 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
1210 appendReloc(relocs, sectionOffset, 0, addressForAtom(*ref.target()),
1213 appendReloc(relocs, sectionOffset, sectionIndexForAtom(*ref.target()),0,
1220 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
1222 appendReloc(relocs, other16, 0, 0,
1228 appendReloc(relocs, sectionOffset, 0, targetAtomAddress,
1230 appendReloc(relocs, other16, 0, 0,
1234 appendReloc(relocs, sectionOffset, sectionIndexForAtom(*ref.target()),0,
1236 appendReloc(relocs, other1
1181 appendSectionRelocations( const DefinedAtom &atom, uint64_t atomSectionOffset, const Reference &ref, FindSymbolIndexForAtom symbolIndexForAtom, FindSectionIndexForAtom sectionIndexForAtom, FindAddressForAtom addressForAtom, normalized::Relocations &relocs) argument
[all...]
H A DArchHandler_arm64.cpp174 normalized::Relocations &relocs) override;
522 "paired relocs must have the same offset");
778 FindAddressForAtom addressForAtom, normalized::Relocations &relocs) {
786 appendReloc(relocs, sectionOffset, ref.addend(), 0,
788 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
791 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
797 appendReloc(relocs, sectionOffset, ref.addend(), 0,
799 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
802 appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
812 appendReloc(relocs, sectionOffse
[all...]
H A DArchHandler.cpp115 void ArchHandler::appendReloc(normalized::Relocations &relocs, uint32_t offset, argument
122 relocs.push_back(reloc);
/freebsd-11-stable/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-11-stable/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-11-stable/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...]
/freebsd-11-stable/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-11-stable/contrib/llvm-project/lld/COFF/
H A DChunks.h618 PseudoRelocTableChunk(std::vector<RuntimePseudoReloc> &relocs) argument
619 : relocs(std::move(relocs)) {
626 std::vector<RuntimePseudoReloc> relocs; member in class:lld::coff::PseudoRelocTableChunk
/freebsd-11-stable/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...]
/freebsd-11-stable/contrib/llvm-project/lld/ELF/
H A DSyntheticSections.h344 llvm::MapVector<Symbol *, size_t> relocs; member in struct:lld::elf::final::FileGot
498 bool isNeeded() const override { return !relocs.empty(); }
499 size_t getSize() const override { return relocs.size() * this->entsize; }
503 std::vector<DynamicReloc> relocs; member in class:lld::elf::RelocationBaseSection
550 bool isNeeded() const override { return !relocs.empty(); }
551 std::vector<RelativeReloc> relocs; member in class:lld::elf::RelrBaseSection

Completed in 176 milliseconds

1234