Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SetAttrReachable (0.24 sec)

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

    					// comment below.)
    					rs := r.Sym()
    					if !d.ldr.AttrUsedInIface(rs) {
    						d.ldr.SetAttrUsedInIface(rs, true)
    						if d.ldr.AttrReachable(rs) {
    							d.ldr.SetAttrReachable(rs, false)
    							d.mark(rs, symIdx)
    						}
    					}
    				}
    				i += 2
    				continue
    			case objabi.R_USETYPE:
    				// type symbol used for DWARF. we need to load the symbol but it may not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loader/loader_test.go

    		t.Errorf("newly materialized symbols should not be reachable")
    	}
    
    	// ... however it should be possible to set/unset their reachability.
    	ldr.SetAttrReachable(es3, true)
    	if !ldr.AttrReachable(es3) {
    		t.Errorf("expected reachable symbol after update")
    	}
    	ldr.SetAttrReachable(es3, false)
    	if ldr.AttrReachable(es3) {
    		t.Errorf("expected unreachable symbol after update")
    	}
    
    	// Test expansion of attr bitmaps
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/symbolbuilder.go

    // returns a CreateSymForUpdate for update. If the symbol already
    // exists, it will update in-place.
    func (l *Loader) CreateSymForUpdate(name string, version int) *SymbolBuilder {
    	s := l.LookupOrCreateSym(name, version)
    	l.SetAttrReachable(s, true)
    	return l.MakeSymbolUpdater(s)
    }
    
    // Getters for properties of the symbol we're working on.
    
    func (sb *SymbolBuilder) Sym() Sym               { return sb.symIdx }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/pcln.go

    	size = Rnd(size, int64(ctxt.Arch.PtrSize))
    	state.size += size
    	s := ctxt.createGeneratorSymbol(name, 0, sym.SPCLNTAB, size, f)
    	ctxt.loader.SetAttrReachable(s, true)
    	ctxt.loader.SetCarrierSym(s, state.carrier)
    	ctxt.loader.SetAttrNotInSymbolTable(s, true)
    	return s
    }
    
    // makePclntab makes a pclntab object, and assembles all the compilation units
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/arm64/asm.go

    	addLabelSyms := func(s loader.Sym, limit, sz int64) {
    		v := ldr.SymValue(s)
    		for off := limit; off < sz; off += limit {
    			p := ldr.LookupOrCreateSym(offsetLabelName(ldr, s, off), ldr.SymVersion(s))
    			ldr.SetAttrReachable(p, true)
    			ldr.SetSymValue(p, v+off)
    			ldr.SetSymSect(p, ldr.SymSect(s))
    			if ctxt.IsDarwin() {
    				ld.AddMachoSym(ldr, p)
    			} else if ctxt.IsWindows() {
    				ld.AddPELabelSym(ldr, p)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  6. src/cmd/link/internal/riscv64/asm.go

    			name := fmt.Sprintf("%s-tramp%d", oName, i)
    			if r.Add() != 0 {
    				name = fmt.Sprintf("%s%+x-tramp%d", oName, r.Add(), i)
    			}
    			tramp = ldr.LookupOrCreateSym(name, int(ldr.SymVersion(rs)))
    			ldr.SetAttrReachable(tramp, true)
    			if ldr.SymType(tramp) == sym.SDYNIMPORT {
    				// Do not reuse trampoline defined in other module.
    				continue
    			}
    			if oName == "runtime.deferreturn" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  7. src/cmd/link/internal/arm/asm.go

    			var tramp loader.Sym
    			for i := 0; ; i++ {
    				oName := ldr.SymName(rs)
    				name := oName + fmt.Sprintf("%+d-tramp%d", offset, i)
    				tramp = ldr.LookupOrCreateSym(name, int(ldr.SymVersion(rs)))
    				ldr.SetAttrReachable(tramp, true)
    				if ldr.SymType(tramp) == sym.SDYNIMPORT {
    					// don't reuse trampoline defined in other module
    					continue
    				}
    				if oName == "runtime.deferreturn" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/symtab.go

    			addgostring(ctxt, ldr, modulehashes, fmt.Sprintf("go:link.linkhash.%d", i), string(shlib.Hash))
    
    			// modulehashes[i].runtimehash
    			abihash := ldr.LookupOrCreateSym("go:link.abihash."+modulename, 0)
    			ldr.SetAttrReachable(abihash, true)
    			modulehashes.AddAddr(ctxt.Arch, abihash)
    		}
    
    		slice(modulehashes.Sym(), uint64(len(ctxt.Shlibs)))
    	} else {
    		moduledata.AddUint(ctxt.Arch, 0) // modulename
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
Back to top