]> Cypherpunks repositories - gostls13.git/commit
runtime, cmd/internal/ld: change runtime to use a single linker symbol
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 11 Mar 2015 23:22:18 +0000 (12:22 +1300)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 Mar 2015 22:45:07 +0000 (22:45 +0000)
commit67426a8a9eabd6d859e42ca799eab6c1aa0d616a
tree60916c7f4daecc25a0b7945324c1529354d36ed0
parent0de359da301d1ed5a63c87a8853bedbd829ab906
runtime, cmd/internal/ld: change runtime to use a single linker symbol

In preparation for being able to run a go program that has code
in several objects, this changes from having several linker
symbols used by the runtime into having one linker symbol that
points at a structure containing the needed data.  Multiple
object support will construct a linked list of such structures.

A follow up will initialize the slices in the themoduledata
structure directly from the linker but I was aiming for a minimal
diff for now.

Change-Id: I613cce35309801cf265a1d5ae5aaca8d689c5cbf
Reviewed-on: https://go-review.googlesource.com/7441
Reviewed-by: Ian Lance Taylor <iant@golang.org>
15 files changed:
src/cmd/internal/ld/symtab.go
src/runtime/heapdump.go
src/runtime/malloc.go
src/runtime/mbarrier.go
src/runtime/mbitmap.go
src/runtime/mem_plan9.go
src/runtime/mfinal.go
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/os1_windows_386.go
src/runtime/os1_windows_amd64.go
src/runtime/proc1.go
src/runtime/race1.go
src/runtime/runtime1.go
src/runtime/symtab.go