Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for relocs (0.51 sec)

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

    	tl := ldr.CreateSymForUpdate("runtime.typelink", 0)
    	tl.SetType(sym.STYPELINK)
    	ldr.SetAttrLocal(tl.Sym(), true)
    	tl.SetSize(int64(4 * len(typelinks)))
    	tl.Grow(tl.Size())
    	relocs := tl.AddRelocs(len(typelinks))
    	for i, s := range typelinks {
    		r := relocs.At(i)
    		r.SetSym(s.Type)
    		r.SetOff(int32(i * 4))
    		r.SetSiz(4)
    		r.SetType(objabi.R_ADDROFF)
    	}
    
    	ptrsize := ctxt.Arch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  2. src/debug/pe/section.go

    	if err != nil {
    		return nil, fmt.Errorf("fail to seek to %q section relocations: %v", sh.Name, err)
    	}
    	relocs := make([]Reloc, sh.NumberOfRelocations)
    	err = binary.Read(r, binary.LittleEndian, relocs)
    	if err != nil {
    		return nil, fmt.Errorf("fail to read section relocations: %v", err)
    	}
    	return relocs, nil
    }
    
    // SectionHeader is similar to [SectionHeader32] with Name
    // field replaced by Go string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/internal/objfile/goobj.go

    		}
    
    		sym := Sym{
    			Name: name,
    			Addr: uint64(r.DataOff(i)),
    			Size: int64(osym.Siz()),
    			Code: code,
    		}
    
    		relocs := r.Relocs(i)
    		sym.Relocs = make([]Reloc, len(relocs))
    		for j := range relocs {
    			rel := &relocs[j]
    			sym.Relocs[j] = Reloc{
    				Addr: uint64(r.DataOff(i)) + uint64(rel.Off()),
    				Size: uint64(rel.Siz()),
    				Stringer: goobjReloc{
    					Off:  rel.Off(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/link/internal/loadpe/seh.go

    	rels := ldr.Relocs(pdata)
    	if rels.Count()%3 != 0 {
    		return fmt.Errorf(".pdata symbol %q has invalid relocation count", ldr.SymName(pdata))
    	}
    	for i := 0; i < rels.Count(); i += 3 {
    		xrel := rels.At(i + 2)
    		handler := findHandlerInXDataAMD64(ldr, xrel.Sym(), xrel.Add())
    		if handler != 0 {
    			sb := ldr.MakeSymbolUpdater(rels.At(i).Sym())
    			r, _ := sb.AddRel(objabi.R_KEEP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/debug/elf/testdata/multiple-code-sections.c

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Build with:
    // gcc -g multiple-code-sections.c -Wl,--emit-relocs -Wl,--discard-none -Wl,-zmax-page-size=1 -fno-asynchronous-unwind-tables -o go-relocation-test-gcc930-ranges-with-rela-x86-64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 31 18:42:38 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/seh.go

    			off = xdata.Size()
    			uwcache[name] = off
    			xdata.AddBytes(ldr.Data(uw))
    			// The SEH unwind data can contain relocations,
    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    				rel, _ := xdata.AddRel(r.Type())
    				rel.SetOff(int32(off) + r.Off())
    				rel.SetSiz(r.Siz())
    				rel.SetSym(r.Sym())
    				rel.SetAdd(r.Add())
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top