Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for secSym (0.57 sec)

  1. src/debug/pe/symbols_test.go

    			name:   ".rdata$.refptr.__native_startup_lock",
    			ok:     true,
    			auxstr: "{Size:8 NumRelocs:1 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:2 _:[0 0 0]}",
    		},
    		81: testpoint{
    			name:   ".debug_line",
    			ok:     true,
    			auxstr: "{Size:994 NumRelocs:1 NumLineNumbers:0 Checksum:1624223678 SecNum:32 Selection:0 _:[0 0 0]}",
    		},
    		155: testpoint{
    			name: ".file",
    			ok:   false,
    			err:  "incorrect symbol storage class",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 06 18:07:48 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/typelink.go

    	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
    	il := ldr.CreateSymForUpdate("runtime.itablink", 0)
    	il.SetType(sym.SITABLINK)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/objfile_test.go

    	s.SetFlag(0x12)
    	s.SetSiz(12345)
    	s.SetAlign(8)
    	s.Write(w)
    
    	var r Reloc
    	r.SetOff(12)
    	r.SetSiz(4)
    	r.SetType(uint16(objabi.R_ADDR))
    	r.SetAdd(54321)
    	r.SetSym(SymRef{11, 22})
    	r.Write(w)
    
    	var a Aux
    	a.SetType(AuxFuncInfo)
    	a.SetSym(SymRef{33, 44})
    	a.Write(w)
    
    	w.wr.Flush()
    
    	// Read them back and check.
    	b := buf.Bytes()
    	var s2 Sym
    	s2.fromBytes(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loong64/asm.go

    	o(0x1a000004)
    	rel, _ := initfunc.AddRel(objabi.R_LOONG64_ADDR_HI)
    	rel.SetOff(0)
    	rel.SetSiz(4)
    	rel.SetSym(ctxt.Moduledata)
    
    	//	4:	02c00084	addi.d	$a0, $a0, 0
    	//				4: R_LARCH_PCALA_LO12	local.moduledata
    	o(0x02c00084)
    	rel2, _ := initfunc.AddRel(objabi.R_LOONG64_ADDR_LO)
    	rel2.SetOff(4)
    	rel2.SetSiz(4)
    	rel2.SetSym(ctxt.Moduledata)
    
    	//	8:	50000000	b	0
    	//				8: R_LARCH_B26	runtime.addmoduledata
    	o(0x50000000)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/seh.go

    			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())
    			}
    		}
    
    		// Reference:
    		// https://learn.microsoft.com/en-us/cpp/build/exception-handling-x64#struct-runtime_function
    		pdata.AddPEImageRelativeAddrPlus(ctxt.Arch, s, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loadpe/seh.go

    		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)
    			r.SetSym(handler)
    		}
    	}
    	return nil
    }
    
    // findHandlerInXDataAMD64 finds the symbol in the .xdata section that
    // corresponds to the exception handler.
    // Reference:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/x86/seh.go

    	b.off += 4
    }
    
    func (b *sehbuf) writecode(op, value uint8) {
    	b.write8(value<<4 | op)
    }
    
    // populateSeh generates the SEH unwind information for s.
    func populateSeh(ctxt *obj.Link, s *obj.LSym) (sehsym *obj.LSym) {
    	if s.NoFrame() {
    		return
    	}
    
    	// This implementation expects the following function prologue layout:
    	// - Stack split code (optional)
    	// - PUSHQ	BP
    	// - MOVQ	SP,	BP
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/debug/pe/symbol.go

    // for more on what's going on here.
    type COFFSymbolAuxFormat5 struct {
    	Size           uint32
    	NumRelocs      uint16
    	NumLineNumbers uint16
    	Checksum       uint32
    	SecNum         uint16
    	Selection      uint8
    	_              [3]uint8 // padding
    }
    
    // These constants make up the possible values for the 'Selection'
    // field in an AuxFormat5.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loadxcoff/ldxcoff.go

    				rAdd = int64(rx.Symbol.Value)
    
    			case xcoff.R_RBR:
    				rSize = 4
    				rType = objabi.R_CALLPOWER
    				rAdd = 0
    			}
    			r, _ := sb.AddRel(rType)
    			r.SetOff(rOff)
    			r.SetSiz(rSize)
    			r.SetSym(rSym)
    			r.SetAdd(rAdd)
    		}
    	}
    	return textp, nil
    }
    
    // Convert symbol xcoff type to sym.SymKind
    // Returns nil if this shouldn't be added into loader (like .file or .dw symbols )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top