Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for relocSect (0.2 sec)

  1. src/cmd/link/internal/ld/macho.go

    	sizeExtRelocs(ctxt, thearch.MachorelocSize)
    	relocSect, wg := relocSectFn(ctxt, machorelocsect)
    
    	relocSect(ctxt, Segtext.Sections[0], ctxt.Textp)
    	for _, sect := range Segtext.Sections[1:] {
    		if sect.Name == ".text" {
    			relocSect(ctxt, sect, ctxt.Textp)
    		} else {
    			relocSect(ctxt, sect, ctxt.datap)
    		}
    	}
    	for _, sect := range Segrelrodata.Sections {
    		relocSect(ctxt, sect, ctxt.datap)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/pe.go

    func (f *peFile) emitRelocations(ctxt *Link) {
    	for ctxt.Out.Offset()&7 != 0 {
    		ctxt.Out.Write8(0)
    	}
    
    	ldr := ctxt.loader
    
    	// relocsect relocates symbols from first in section sect, and returns
    	// the total number of relocations emitted.
    	relocsect := func(sect *sym.Section, syms []loader.Sym, base uint64) int {
    		// If main section has no bits, nothing to relocate.
    		if sect.Vaddr >= sect.Seg.Vaddr+sect.Seg.Filelen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  3. 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)
Back to top