]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: consolidate emitting entry stack map
authorAustin Clements <austin@google.com>
Sun, 22 Apr 2018 01:13:56 +0000 (21:13 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 14:43:35 +0000 (14:43 +0000)
commit02495da6b6b1ee27612c27f24883b9b28c2c1a6e
treeee790d22e4984d664a348f99dbbae6143d5832d5
parent837ed98d631928ff0036df03899b83c50237555f
cmd/internal/obj: consolidate emitting entry stack map

The obj package needs to emit the PCDATA to select the entry stack map
before calling morestack. Currently this is copied for every
architecture. Since we're about to change how this works, consolidate
all of these copies into a single helper function.

For #24543.

Change-Id: Ia92d94de78f8e23fd06dba747c43e03e5989f67b
Reviewed-on: https://go-review.googlesource.com/109346
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/arm64/obj7.go
src/cmd/internal/obj/mips/obj0.go
src/cmd/internal/obj/plist.go
src/cmd/internal/obj/ppc64/obj9.go
src/cmd/internal/obj/s390x/objz.go
src/cmd/internal/obj/x86/obj6.go