Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SymPkg (0.38 sec)

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

    	if ctxt.loader.SymType(s) == sym.SDYNIMPORT {
    		symData := ctxt.loader.Data(s)
    		addr := decodetypeGcprogShlib(ctxt, symData)
    		ptrdata := decodetypePtrdata(ctxt.Arch, symData)
    		sect := findShlibSection(ctxt, ctxt.loader.SymPkg(s), addr)
    		if sect != nil {
    			bits := ptrdata / int64(ctxt.Arch.PtrSize)
    			r := make([]byte, (bits+7)/8)
    			// ldshlibsyms avoids closing the ELF file so sect.ReadAt works.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/xcoff.go

    		// Same goes for runtime.text.X symbols.
    	} else if ldr.SymPkg(x) == "" { // Undefined global symbol
    		// If this happens, the algorithm must be redone.
    		if currSymSrcFile.name != "" {
    			Exitf("undefined global symbol found inside another file")
    		}
    	} else {
    		// Current file has changed. New C_FILE, C_DWARF, etc must be generated.
    		if currSymSrcFile.name != ldr.SymPkg(x) {
    			if ctxt.LinkMode == LinkInternal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:58:23 UTC 2023
    - 51.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    			// be made regarding reachability and the need for trampolines.
    			if symPkg := ldr.SymPkg(s); symPkg != "" && curPkg != symPkg {
    				curPkg = symPkg
    				vaTmp := va
    				for j := i; j < len(ctxt.Textp); j++ {
    					curSym := ctxt.Textp[j]
    					if symPkg := ldr.SymPkg(curSym); symPkg == "" || curPkg != symPkg {
    						break
    					}
    					// We do not pass big to assignAddress here, as this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  4. src/cmd/link/internal/riscv64/asm.go

    		// Relocation symbol has an address and is directly reachable,
    		// therefore there is no need for a trampoline.
    		if ldr.SymValue(rs) != 0 && off >= -(1<<20) && off < (1<<20) && (*ld.FlagDebugTramp <= 1 || ldr.SymPkg(s) == ldr.SymPkg(rs)) {
    			break
    		}
    
    		// Relocation symbol is too far for a direct call or has not
    		// yet been given an address. See if an existing trampoline is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loader/loader.go

    	return r.unit
    }
    
    // SymPkg returns the package where the symbol came from (for
    // regular compiler-generated Go symbols), but in the case of
    // building with "-linkshared" (when a symbol is read from a
    // shared library), will hold the library name.
    // NOTE: this corresponds to sym.Symbol.File field.
    func (l *Loader) SymPkg(i Sym) string {
    	if f, ok := l.symPkg[i]; ok {
    		return f
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  6. src/cmd/link/internal/arm/asm.go

    				t = (ldr.SymValue(rs) + int64(signext24(r.Add()&0xffffff)*4) - (ldr.SymValue(s) + int64(r.Off()))) / 4
    			}
    		}
    		if t > 0x7fffff || t <= -0x800000 || ldr.SymValue(rs) == 0 || (*ld.FlagDebugTramp > 1 && ldr.SymPkg(s) != ldr.SymPkg(rs)) {
    			// direct call too far, need to insert trampoline.
    			// look up existing trampolines first. if we found one within the range
    			// of direct call, we can reuse it. otherwise create a new one.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  7. src/cmd/link/internal/arm64/asm.go

    		if ldr.SymValue(rs) != 0 {
    			t = ldr.SymValue(rs) + r.Add() - (ldr.SymValue(s) + int64(r.Off()))
    		}
    		if t >= 1<<27 || t < -1<<27 || ldr.SymValue(rs) == 0 || (*ld.FlagDebugTramp > 1 && (ldr.SymPkg(s) == "" || ldr.SymPkg(s) != ldr.SymPkg(rs))) {
    			// direct call too far, need to insert trampoline.
    			// look up existing trampolines first. if we found one within the range
    			// of direct call, we can reuse it. otherwise create a new one.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/symtab.go

    	nsym := loader.Sym(ldr.NSym())
    	symGroupType := make([]sym.SymKind, nsym)
    	for s := loader.Sym(1); s < nsym; s++ {
    		if (!ctxt.IsExternal() && ldr.IsFileLocal(s) && !ldr.IsFromAssembly(s) && ldr.SymPkg(s) != "") || (ctxt.LinkMode == LinkInternal && ldr.SymType(s) == sym.SCOVERAGE_COUNTER) {
    			ldr.SetAttrNotInSymbolTable(s, true)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ppc64/asm.go

    		if (ctxt.IsExternal() && ldr.SymSect(s) != ldr.SymSect(rs)) || (ctxt.IsInternal() && int64(int32(t<<6)>>6) != t) || ldr.SymValue(rs) == 0 || (*ld.FlagDebugTramp > 1 && ldr.SymPkg(s) != ldr.SymPkg(rs)) {
    			var tramp loader.Sym
    			for i := 0; ; i++ {
    
    				// Using r.Add as part of the name is significant in functions like duffzero where the call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/dwarf.go

    		fsu.AddUintXX(d.arch, uint64(len(d.ldr.Data(fn))), d.arch.PtrSize) // address range
    		fsu.AddBytes(deltaBuf)
    
    		if d.linkctxt.HeadType == objabi.Haix {
    			addDwsectCUSize(".debug_frame", d.ldr.SymPkg(fn), fdeLength+uint64(lengthFieldSize))
    		}
    	}
    
    	return dwarfSecInfo{syms: []loader.Sym{fs}}
    }
    
    /*
     *  Walk DWarfDebugInfoEntries, and emit .debug_info
     */
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top