Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AttrReachable (0.2 sec)

  1. src/cmd/link/internal/loader/loader.go

    	return int64(r.Sym(li).Siz())
    }
    
    // AttrReachable returns true for symbols that are transitively
    // referenced from the entry points. Unreachable symbols are not
    // written to the output.
    func (l *Loader) AttrReachable(i Sym) bool {
    	return l.attrReachable.Has(i)
    }
    
    // SetAttrReachable sets the reachability property for a symbol (see
    // AttrReachable).
    func (l *Loader) SetAttrReachable(i Sym, v bool) {
    	if v {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/lib.go

    		// runtime.MemProfile is not retained in the binary after
    		// deadcode (and we're not dynamically linking).
    		memProfile := ctxt.loader.Lookup("runtime.MemProfile", abiInternalVer)
    		if memProfile != 0 && !ctxt.loader.AttrReachable(memProfile) && !ctxt.DynlinkingGo() {
    			memProfSym := ctxt.loader.LookupOrCreateSym("runtime.disableMemoryProfiling", 0)
    			sb := ctxt.loader.MakeSymbolUpdater(memProfSym)
    			sb.SetType(sym.SDATA)
    			sb.SetSize(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top