]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add loader support for recording ElfType for symbols
authorThan McIntosh <thanm@google.com>
Fri, 3 Jan 2020 20:17:26 +0000 (15:17 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 9 Jan 2020 20:35:37 +0000 (20:35 +0000)
commitce7a0dda31b22a800aca199182901cbbc9a625a1
treef3a4533516cdd6d3c7a666697a1dc77f1a4edc16
parentdb48d458388e62aa1ae8947a5f5bbd60b467bcf6
[dev.link] cmd/link: add loader support for recording ElfType for symbols

Add hooks in the loader for recording the ElfType of a symbol, as a
replacement for the sym.Symbol ElfType() and SetElfType() methods.
This symbol property is set only for symbols read from shared
libraries by ldshlibsyms.

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