Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 269 for relocs (0.13 sec)

  1. src/cmd/internal/objfile/disasm.go

    		i := pc - d.textStart
    		text, size := d.disasm(code[i:], pc, lookup, d.byteOrder, gnuAsm)
    		file, line, _ := d.pcln.PCToLine(pc)
    		sep := "\t"
    		for len(relocs) > 0 && relocs[0].Addr < i+uint64(size) {
    			text += sep + relocs[0].Stringer.String(pc-start)
    			sep = " "
    			relocs = relocs[1:]
    		}
    		f(pc, uint64(size), file, line, text)
    		pc += uint64(size)
    	}
    }
    
    type lookupFunc = func(addr uint64) (sym string, base uint64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile_test.go

    	}
    
    	tests := []struct {
    		a, b  int
    		equal bool
    	}{
    		{0, 1, true},  // same contents, no relocs
    		{0, 2, false}, // different contents
    		{3, 4, true},  // same contents, same relocs
    		{3, 5, true},  // recursively same contents
    		{3, 6, false}, // same contents, different relocs
    	}
    	for _, test := range tests {
    		if (h[test.a] == h[test.b]) != test.equal {
    			eq := "equal"
    			if !test.equal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader_test.go

    			t.Errorf("testing Loader.%s: expected data %v got %v",
    				tp.which, tp.expData, ldr.Data(mi))
    		}
    		relocs := ldr.Relocs(mi)
    		if !sameRelocSlice(&relocs, tp.expRel) {
    			t.Fatalf("testing Loader.%s: got relocslice %+v wanted %+v",
    				tp.which, relocs, tp.expRel)
    		}
    		pmi = mi
    	}
    }
    
    func TestOuterSub(t *testing.T) {
    	ldr := mkLoader()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. src/internal/pkgbits/encoder.go

    	e := RelocEnt{r, idx}
    	if w.RelocMap != nil {
    		if i, ok := w.RelocMap[e]; ok {
    			return int(i)
    		}
    	} else {
    		w.RelocMap = make(map[RelocEnt]uint32)
    	}
    
    	i := len(w.Relocs)
    	w.RelocMap[e] = uint32(i)
    	w.Relocs = append(w.Relocs, e)
    	return i
    }
    
    func (w *Encoder) Sync(m SyncMarker) {
    	if !w.p.SyncMarkers() {
    		return
    	}
    
    	// Writing out stack frame string references requires working
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt

    # ppc64le objects compiled with gcc's -fno-plt
    # option. This inlines PLT calls, and generates
    # additional reloc types which the internal linker
    # should handle.
    #
    # Verifies golang.org/issue/53345
    #
    # Note, older gcc/clang may accept this option, but
    # ignore it if binutils does not support the relocs.
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    env CGO_CFLAGS='-fno-plt -O2 -g'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 719 bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/inittask.go

    	var q []loader.Sym
    	for _, p := range roots {
    		m[p] = 0
    		q = append(q, p)
    	}
    	for len(q) > 0 {
    		x := q[len(q)-1]
    		q = q[:len(q)-1]
    		relocs := ldr.Relocs(x)
    		n := relocs.Count()
    		ndeps := 0
    		for i := 0; i < n; i++ {
    			r := relocs.At(i)
    			if r.Type() != objabi.R_INITORDER {
    				continue
    			}
    			ndeps++
    			s := r.Sym()
    			edges = append(edges, edge{from: x, to: s})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ppc64/asm.go

    	}
    
    	return stub.Sym(), firstUse
    }
    
    // Scan relocs and generate PLT stubs and generate/fixup ABI defined functions created by the linker.
    func genstubs(ctxt *ld.Link, ldr *loader.Loader) {
    	var stubs []loader.Sym
    	var abifuncs []loader.Sym
    	for _, s := range ctxt.Textp {
    		relocs := ldr.Relocs(s)
    		for i := 0; i < relocs.Count(); i++ {
    			switch r := relocs.At(i); r.Type() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  8. src/internal/xcoff/file.go

    			continue
    		}
    		c := saferio.SliceCap[Reloc](uint64(sect.Nreloc))
    		if c < 0 {
    			return nil, fmt.Errorf("too many relocs (%d) for section %d", sect.Nreloc, sectNum)
    		}
    		sect.Relocs = make([]Reloc, 0, c)
    		if _, err := sr.Seek(int64(sect.Relptr), io.SeekStart); err != nil {
    			return nil, err
    		}
    		for i := uint32(0); i < sect.Nreloc; i++ {
    			var reloc Reloc
    			switch f.TargetMachine {
    			case U802TOCMAGIC:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/wasm/asm.go

    	var hostImports []*wasmFunc
    	hostImportMap := make(map[loader.Sym]int64)
    	for _, fn := range ctxt.Textp {
    		relocs := ldr.Relocs(fn)
    		for ri := 0; ri < relocs.Count(); ri++ {
    			r := relocs.At(ri)
    			if r.Type() == objabi.R_WASMIMPORT {
    				if lsym, ok := ldr.WasmImportSym(fn); ok {
    					wi := readWasmImport(ldr, lsym)
    					hostImportMap[fn] = int64(len(hostImports))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. src/cmd/internal/goobj/objfile.go

    }
    
    // Reloc returns a pointer to the j-th relocation of the i-th symbol.
    func (r *Reader) Reloc(i uint32, j int) *Reloc {
    	off := r.RelocOff(i, j)
    	return (*Reloc)(unsafe.Pointer(&r.b[off]))
    }
    
    // Relocs returns a pointer to the relocations of the i-th symbol.
    func (r *Reader) Relocs(i uint32) []Reloc {
    	off := r.RelocOff(i, 0)
    	n := r.NReloc(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top