- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for SetAttrOnList (0.28 sec)
-
src/cmd/link/internal/loadxcoff/ldxcoff.go
} s := l.LookupOrCreateSym(sx.Name, 0) // Text symbol if l.SymType(s) == sym.STEXT { if l.AttrOnList(s) { return errorf("symbol %s listed multiple times", l.SymName(s)) } l.SetAttrOnList(s, true) textp = append(textp, s) } } // Read relocations for _, sect := range ldSections { // TODO(aix): Dwarf section relocation if needed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader_test.go
// Test expansion of attr bitmaps for idx := 0; idx < 36; idx++ { es := ldr.LookupOrCreateSym(fmt.Sprintf("zext%d", idx), 0) if ldr.AttrOnList(es) { t.Errorf("expected OnList after creation") } ldr.SetAttrOnList(es, true) if !ldr.AttrOnList(es) { t.Errorf("expected !OnList after update") } if ldr.AttrDuplicateOK(es) { t.Errorf("expected DupOK after creation") } ldr.SetAttrDuplicateOK(es, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:09 UTC 2024 - 12K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) SetSize(size int64) { sb.size = size } func (sb *SymbolBuilder) SetData(data []byte) { sb.data = data } func (sb *SymbolBuilder) SetOnList(v bool) { sb.l.SetAttrOnList(sb.symIdx, v) } func (sb *SymbolBuilder) SetExternal(v bool) { sb.l.SetAttrExternal(sb.symIdx, v) } func (sb *SymbolBuilder) SetValue(v int64) { sb.l.SetSymValue(sb.symIdx, v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0) -
src/cmd/link/internal/loadelf/ldelf.go
return errorf("symbol %s listed multiple times", l.SymName(s)) } l.SetAttrOnList(s, true) textp = append(textp, s) for ss := l.SubSym(s); ss != 0; ss = l.SubSym(ss) { if l.AttrOnList(ss) { return errorf("symbol %s listed multiple times", l.SymName(ss)) } l.SetAttrOnList(ss, true) textp = append(textp, ss) } } } // load relocations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:12:12 UTC 2024 - 33.9K bytes - Viewed (0) -
src/cmd/link/internal/loadmacho/ldmacho.go
bld.SetOnList(true) textp = append(textp, s) for s1 := bld.Sub(); s1 != 0; s1 = l.SubSym(s1) { if l.AttrOnList(s1) { return errorf("symbol %s listed multiple times", l.SymName(s1)) } l.SetAttrOnList(s1, true) textp = append(textp, s1) } } } // load relocations for i := 0; uint32(i) < c.seg.nsect; i++ { sect := &c.seg.sect[i] s := sect.sym if s == 0 { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 12 18:45:57 UTC 2022 - 19.1K bytes - Viewed (0) -
src/cmd/link/internal/loadpe/ldpe.go
if l.SymType(s) == sym.STEXT { for ; s != 0; s = l.SubSym(s) { if l.AttrOnList(s) { return nil, fmt.Errorf("symbol %s listed multiple times", l.SymName(s)) } l.SetAttrOnList(s, true) ls.Textp = append(ls.Textp, s) } } } if ls.PData != 0 { processSEH(l, arch, ls.PData, ls.XData) } return &ls, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 20:26:46 UTC 2023 - 26.5K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
// and is consulted to avoid bugs where a symbol is put on a list // twice. func (l *Loader) AttrOnList(i Sym) bool { return l.attrOnList.Has(i) } // SetAttrOnList sets the "on list" property for a symbol (see // AttrOnList). func (l *Loader) SetAttrOnList(i Sym, v bool) { if v { l.attrOnList.Set(i) } else { l.attrOnList.Unset(i) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
rsym := r.Sym() rst := d.ldr.SymType(rsym) // Look for abstract function references. if rst == sym.SDWARFABSFCN { if !d.ldr.AttrOnList(rsym) { // abstract function d.ldr.SetAttrOnList(rsym, true) unit.AbsFnDIEs = append(unit.AbsFnDIEs, sym.LoaderSym(rsym)) d.importInfoSymbol(rsym) } continue } // Look for type references.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
} state.data[st] = append(state.data[st], s) // Similarly with checking the onlist attr. if ldr.AttrOnList(s) { log.Fatalf("symbol %s listed multiple times", ldr.SymName(s)) } ldr.SetAttrOnList(s, true) } // Now that we have the data symbols, but before we start // to assign addresses, record all the necessary // dynamic relocations. These will grow the relocation
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0)