mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Merge "cmd/link: merge branch 'dev.link' into master"
This commit is contained in:
commit
89f687d6db
19 changed files with 946 additions and 624 deletions
|
|
@ -543,7 +543,7 @@ func (ctxt *Link) loadlib() {
|
|||
}
|
||||
|
||||
// Add non-package symbols and references of externally defined symbols.
|
||||
ctxt.loader.LoadNonpkgSyms(ctxt.Arch)
|
||||
ctxt.loader.LoadSyms(ctxt.Arch)
|
||||
|
||||
// Load symbols from shared libraries, after all Go object symbols are loaded.
|
||||
for _, lib := range ctxt.Library {
|
||||
|
|
@ -2269,7 +2269,7 @@ func (sc *stkChk) check(up *chain, depth int) int {
|
|||
var ch1 chain
|
||||
pcsp := obj.NewPCIter(uint32(ctxt.Arch.MinLC))
|
||||
ri := 0
|
||||
for pcsp.Init(info.Pcsp()); !pcsp.Done; pcsp.Next() {
|
||||
for pcsp.Init(ldr.Data(info.Pcsp())); !pcsp.Done; pcsp.Next() {
|
||||
// pcsp.value is in effect for [pcsp.pc, pcsp.nextpc).
|
||||
|
||||
// Check stack size in effect for this span.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue