Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for relocEnt (0.26 sec)

  1. src/internal/pkgbits/reloc.go

    type RelocKind int32
    
    // An Index represents a bitstream element index within a particular
    // section.
    type Index int32
    
    // A relocEnt (relocation entry) is an entry in an element's local
    // reference table.
    //
    // TODO(mdempsky): Rename this too.
    type RelocEnt struct {
    	Kind RelocKind
    	Idx  Index
    }
    
    // Reserved indices within the meta relocation section.
    const (
    	PublicRootIdx  Index = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 22:22:48 UTC 2022
    - 835 bytes
    - Viewed (0)
  2. src/internal/pkgbits/decoder.go

    		pr.scratchRelocEnt = nil
    	} else {
    		r.Relocs = make([]RelocEnt, l)
    	}
    	for i := range r.Relocs {
    		r.Sync(SyncReloc)
    		r.Relocs[i] = RelocEnt{RelocKind(r.Len()), Index(r.Len())}
    	}
    
    	return r
    }
    
    // A Decoder provides methods for decoding an individual element's
    // bitstream data.
    type Decoder struct {
    	common *PkgDecoder
    
    	Relocs []RelocEnt
    	Data   strings.Reader
    
    	k   RelocKind
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  3. src/internal/pkgbits/encoder.go

    		p:   pw,
    		k:   k,
    		Idx: idx,
    	}
    }
    
    // An Encoder provides methods for encoding an individual element's
    // bitstream data.
    type Encoder struct {
    	p *PkgEncoder
    
    	Relocs   []RelocEnt
    	RelocMap map[RelocEnt]uint32
    	Data     bytes.Buffer // accumulated element bitstream data
    
    	encodingRelocHeader bool
    
    	k   RelocKind
    	Idx Index // index within relocation section
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/sym/segment.go

    	Elfsect interface{} // an *ld.ElfShdr
    	Reloff  uint64
    	Rellen  uint64
    	// Relcount is the number of *host* relocations applied to this section
    	// (when external linking).
    	// Incremented atomically on multiple goroutines.
    	// Note: this may differ from number of Go relocations, as one Go relocation
    	// may turn into multiple host relocations.
    	Relcount uint32
    	Sym      LoaderSym // symbol for the section, if any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 05:32:52 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

     0x0000001e (FLAGS)                      STATIC_TLS
     0x6ffffffe (VERNEED)                    0x14898
     0x6fffffff (VERNEEDNUM)                 1
     0x6ffffff0 (VERSYM)                     0x1315e
     0x6ffffffa (RELCOUNT)                   1253
     0x00000000 (NULL)                       0x0
    """
                ]]
        }
    
        @Unroll("returns null for no soname value with #language readelf output")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/asmb.go

    	}
    	var sz int64
    	for _, seg := range Segments {
    		for _, sect := range seg.Sections {
    			sect.Reloff = uint64(ctxt.Out.Offset() + sz)
    			sect.Rellen = uint64(relsize * sect.Relcount)
    			sz += int64(sect.Rellen)
    		}
    	}
    	filesz := ctxt.Out.Offset() + sz
    	err := ctxt.Out.Mmap(uint64(filesz))
    	if err != nil {
    		Exitf("mapping output file failed: %v", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 09:22:56 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/pe.go

    }
    
    // emitRelocations emits the relocation entries for the sect.
    // The actual relocations are emitted by relocfn.
    // This updates the corresponding PE section table entry
    // with the relocation offset and count.
    func (sect *peSection) emitRelocations(out *OutBuf, relocfn func() int) {
    	sect.pointerToRelocations = uint32(out.Offset())
    	// first entry: extended relocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/data.go

    		}
    	}
    	if target.IsExternal() {
    		// We'll stream out the external relocations in asmb2 (e.g. elfrelocsect)
    		// and we only need the count here.
    		atomic.AddUint32(&ldr.SymSect(s).Relcount, uint32(nExtReloc))
    	}
    }
    
    // Convert a Go relocation to an external relocation.
    func extreloc(ctxt *Link, ldr *loader.Loader, s loader.Sym, r loader.Reloc) (loader.ExtReloc, bool) {
    	var rr loader.ExtReloc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
Back to top