Skip to content

Commit db4adb1

Browse files
committed
cmd/link: print symbol versions in stack bound check
When the stack bound check fails, print the call chain with symbol versions (along with the names). Now that we have ABI wrappers and wrappers do consume stack space, it is clearer to distinguish the wrappers vs. the underlying functions. Change-Id: Id1d922e3e7934b31317f233aff3d9667b6ac90c8 Reviewed-on: https://go-review.googlesource.com/c/go/+/302869 Trust: Cherry Zhang <[email protected]> Run-TryBot: Cherry Zhang <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
1 parent 9de49ae commit db4adb1

File tree

1 file changed

+1
-1
lines changed
  • src/cmd/link/internal/ld

1 file changed

+1
-1
lines changed

src/cmd/link/internal/ld/lib.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ func (sc *stkChk) print(ch *chain, limit int) {
24162416
ctxt := sc.ctxt
24172417
var name string
24182418
if ch.sym != 0 {
2419-
name = ldr.SymName(ch.sym)
2419+
name = fmt.Sprintf("%s<%d>", ldr.SymName(ch.sym), ldr.SymVersion(ch.sym))
24202420
if ldr.IsNoSplit(ch.sym) {
24212421
name += " (nosplit)"
24222422
}

0 commit comments

Comments
 (0)