]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/loader: add elf symbol methods
authorThan McIntosh <thanm@google.com>
Tue, 28 Apr 2020 14:37:33 +0000 (10:37 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 28 Apr 2020 18:57:48 +0000 (18:57 +0000)
commit12b11f3af9be5421ba330136b34efe1d8c80e1d6
treedb1b02061869cf3460c1fe62be51500338f22385
parent183d25d9963107e6e4e86c49018ddd8871109d61
[dev.link] cmd/link/internal/loader: add elf symbol methods

Add new get/set methods to the loader for recording the ELF symbol
index for a given loader symbol. These are map-based, since it is
expected that many/most symbols will not need an ELF symbol table
entry.

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