- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for MakeSymbolUpdater (0.4 sec)
-
src/cmd/link/internal/ld/ld.go
// Create a new init func text symbol. Caller will populate this // sym with arch-specific content. ifs := ctxt.loader.LookupOrCreateSym("go:link.addmoduledata", 0) initfunc := ctxt.loader.MakeSymbolUpdater(ifs) ctxt.loader.SetAttrReachable(ifs, true) ctxt.loader.SetAttrLocal(ifs, true) initfunc.SetType(sym.STEXT) // Add the init func and/or addmoduledata to Textp. if ctxt.BuildMode == BuildModePlugin {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 8K bytes - Viewed (0) -
src/cmd/link/internal/loadxcoff/ldxcoff.go
continue } lds := new(ldSection) lds.Section = *sect name := fmt.Sprintf("%s(%s)", pkg, lds.Name) symbol := l.LookupOrCreateSym(name, localSymVersion) s := l.MakeSymbolUpdater(symbol) switch lds.Type { default: return errorf("unrecognized section type 0x%x", lds.Type) case xcoff.STYP_TEXT: s.SetType(sym.STEXT) case xcoff.STYP_DATA: s.SetType(sym.SNOPTRDATA)
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/loadpe/seh.go
} for i := 0; i < rels.Count(); i += 3 { xrel := rels.At(i + 2) handler := findHandlerInXDataAMD64(ldr, xrel.Sym(), xrel.Add()) if handler != 0 { sb := ldr.MakeSymbolUpdater(rels.At(i).Sym()) r, _ := sb.AddRel(objabi.R_KEEP) r.SetSym(handler) } } return nil } // findHandlerInXDataAMD64 finds the symbol in the .xdata section that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 16:20:28 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/link.go
ldr := ctxt.loader s := ldr.LookupOrCreateSym(name, version) ldr.SetIsGeneratedSym(s, true) sb := ldr.MakeSymbolUpdater(s) sb.SetType(t) sb.SetSize(size) ctxt.generatorSyms[s] = gen return s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:22 UTC 2022 - 5.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
// This slice header is already defined in runtime/proc.go, so we update it here with new contents. sh := ldr.Lookup("runtime.runtime_inittasks", 0) sb := ldr.MakeSymbolUpdater(sh) sb.SetSize(0) sb.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see issue 58857. sb.AddAddr(ctxt.Arch, t) sb.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K bytes - Viewed (0)