]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add dynimp, localentry attributes for loader.Sym
authorThan McIntosh <thanm@google.com>
Thu, 12 Dec 2019 13:08:40 +0000 (08:08 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 20 Dec 2019 21:04:57 +0000 (21:04 +0000)
commite4a8da499b0d5aa235abaddb09793546ba6b7446
tree3f7ee707689fbf38bec6825685a55aea2be17528
parent24f9b9c8f3042f128d59c27d461cc34ddc3ab5d3
[dev.link] cmd/link: add dynimp, localentry attributes for loader.Sym

Add new methods to get/set the "dynimplib", "dynimpvers" and
"localentry" attributes for an external Sym in loader.Loader. These
attribute values are stored sparsely, since we expect that most
symbols will not need them; they are set when processing cgo
directives and when dealing with host object symbols.

Change-Id: If0b3c173307801d39cb576bb99c83b9081c42d9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/211298
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/loader/loader.go