Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DuplicateOK (0.28 sec)

  1. src/cmd/internal/obj/objfile.go

    func (w *writer) Sym(s *LSym) {
    	name := s.Name
    	abi := uint16(s.ABI())
    	if s.Static() {
    		abi = goobj.SymABIstatic
    	}
    	flag := uint8(0)
    	if s.DuplicateOK() {
    		flag |= goobj.SymFlagDupok
    	}
    	if s.Local() {
    		flag |= goobj.SymFlagLocal
    	}
    	if s.MakeTypelink() {
    		flag |= goobj.SymFlagTypelink
    	}
    	if s.Leaf() {
    		flag |= goobj.SymFlagLeaf
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loader/symbolbuilder.go

    func (sb *SymbolBuilder) ReadOnly() bool {
    	return sb.l.AttrReadOnly(sb.symIdx)
    }
    
    func (sb *SymbolBuilder) SetReadOnly(v bool) {
    	sb.l.SetAttrReadOnly(sb.symIdx, v)
    }
    
    func (sb *SymbolBuilder) DuplicateOK() bool {
    	return sb.l.AttrDuplicateOK(sb.symIdx)
    }
    
    func (sb *SymbolBuilder) SetDuplicateOK(v bool) {
    	sb.l.SetAttrDuplicateOK(sb.symIdx, v)
    }
    
    func (sb *SymbolBuilder) Outer() Sym {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/sym.go

    		return true
    	}
    	if s.Pkg == "_" {
    		// The frontend uses package "_" to mark symbols that should not
    		// be referenced by index, e.g. linkname'd symbols.
    		return true
    	}
    	if s.DuplicateOK() {
    		// Dupok symbol needs to be dedup'd by name.
    		return true
    	}
    	return false
    }
    
    // StaticNamePref is the prefix the front end applies to static temporary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loadmacho/ldmacho.go

    		}
    
    		bld.SetValue(int64(machsym.value - sect.addr))
    		if !l.AttrCgoExportDynamic(s) {
    			bld.SetDynimplib("") // satisfy dynimport
    		}
    		if l.SymType(outer) == sym.STEXT {
    			if bld.External() && !bld.DuplicateOK() {
    				return errorf("%v: duplicate symbol definition", s)
    			}
    			bld.SetExternal(true)
    		}
    	}
    
    	// Sort outer lists by address, adding to textp.
    	// This keeps textp in increasing address order.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loadpe/ldpe.go

    		bld.SetType(l.SymType(sectsym))
    		l.AddInteriorSym(sectsym, s)
    		bld.SetValue(int64(pesym.Value))
    		bld.SetSize(4)
    		if l.SymType(sectsym) == sym.STEXT {
    			if bld.External() && !bld.DuplicateOK() {
    				return nil, fmt.Errorf("%s: duplicate symbol definition", l.SymName(s))
    			}
    			bld.SetExternal(true)
    		}
    		if sz, ok := state.comdats[uint16(pesym.SectionNumber-1)]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 20:26:46 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/link.go

    	//
    	// MUST BE LAST since all bits above this comprise the ABI.
    	attrABIBase
    )
    
    func (a *Attribute) load() Attribute { return Attribute(atomic.LoadUint32((*uint32)(a))) }
    
    func (a *Attribute) DuplicateOK() bool        { return a.load()&AttrDuplicateOK != 0 }
    func (a *Attribute) MakeTypelink() bool       { return a.load()&AttrMakeTypelink != 0 }
    func (a *Attribute) CFunc() bool              { return a.load()&AttrCFunc != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top