]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add basic shared library support in newobj mode
authorCherry Zhang <cherryyz@google.com>
Wed, 16 Oct 2019 19:44:04 +0000 (15:44 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 16 Oct 2019 22:28:18 +0000 (22:28 +0000)
commit2bbf2e0233799ab90bedc82f51a87f7d7aa76920
tree7ce35942747ecfb9c7a2a58e580a57787bb369c4
parent5caac2f73efe7fc6919f7850d99c35cde02012b5
[dev.link] cmd/link: add basic shared library support in newobj mode

This CL adds basic shared library support in newobj mode. This is
not complete -- there are still tests in misc/cgo/testshared
failing. But at least a simple program works, and some tests
there pass.

Add the mechanism of loading external symbols with contents.
(Before, external symbols are always contentless.) This may
potentially be also used for other host objects.

Change-Id: I68dbf71e7949cc01ebf37ea159084e798ae16925
Reviewed-on: https://go-review.googlesource.com/c/go/+/201537
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/deadcode2.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/loader/loader.go