]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd: convert symbol "shared" flag to object file flag
authorThan McIntosh <thanm@google.com>
Wed, 16 Oct 2019 12:54:58 +0000 (08:54 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 17 Oct 2019 14:18:28 +0000 (14:18 +0000)
commit15634a023062ad29ba53e8a4211e15d389f86ee9
tree31b29fe191dfa03f7b1157551413ee09cb35f8f6
parent2bbf2e0233799ab90bedc82f51a87f7d7aa76920
[dev.link] cmd: convert symbol "shared" flag to object file flag

For the new object file format, don't tag individual symbols with a
"shared" flag, since that characteristic is better off as an attribute
of the containing object file as opposed to the individual symbol. Add
a new flags field in the object file header and put a bit in the flags
if the shared flags is in effect during compilation.

Change-Id: I2cf6d33bf7bf2fd8a7614ae0cd6ef03914777498
Reviewed-on: https://go-review.googlesource.com/c/go/+/201398
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/internal/obj/objfile2.go
src/cmd/link/internal/loader/loader.go