]> Cypherpunks repositories - gostls13.git/commit
cmd, runtime: mark assembly routines in FuncFlags
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 1 Oct 2021 23:19:27 +0000 (16:19 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 4 Oct 2021 22:27:40 +0000 (22:27 +0000)
commit752cc07c77767d28a61525daa359d087b035f5c1
tree8e5464f282b8eef1e46c1c36b57483d32bd237db
parent7ee4c1665477c6cf574cb9128deaf9d00906c69f
cmd, runtime: mark assembly routines in FuncFlags

There's no good way to ascertain at runtime whether
a function was implemented in assembly.
The existing workaround doesn't play nicely
with some upcoming linker changes.

This change introduces an explicit marker for routines
implemented in assembly.

This change doesn't use the new bit anywhere,
it only introduces it.

Change-Id: I4051dc0afc15b260724a04b9d18aeeb94911bb29
Reviewed-on: https://go-review.googlesource.com/c/go/+/353671
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/plist.go
src/cmd/internal/objabi/funcid.go
src/runtime/symtab.go