]> Cypherpunks repositories - gostls13.git/commit
cmd/link: collect itablinks as a slice in moduledata
authorMichel Lespinasse <walken@google.com>
Thu, 17 Mar 2016 14:00:33 +0000 (07:00 -0700)
committerMichel Lespinasse <walken@google.com>
Tue, 29 Mar 2016 02:18:56 +0000 (02:18 +0000)
commit79688ca58f59a65eee324694fd8a559dae8af149
tree34397cb080d24b7ebe4ca4f47aced111ea9d8d44
parentf00bbd5f818f0a6b5b2fcf15422ad7fc4594225f
cmd/link: collect itablinks as a slice in moduledata

See #14874

This change tells the linker to collect all the itablink symbols and
collect them so that moduledata can have a slice of all compiler
generated itabs.

The logic is shamelessly adapted from what is done with typelink symbols.

Change-Id: Ie93b59acf0fcba908a876d506afbf796f222dbac
Reviewed-on: https://go-review.googlesource.com/20889
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/internal/goobj/read.go
src/cmd/internal/obj/link.go
src/cmd/internal/objfile/goobj.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/symtab.go
src/runtime/symtab.go