mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: delete sym.Symbol and sym.Reloc
This deletes all sym.Symbol and sym.Reloc references. This is certainly not complete, and there are more cleanups to do. But I feel this makes a good first round. Change-Id: I7621d016957f7ef114be5f0606fcb3ad6aee71c8 Reviewed-on: https://go-review.googlesource.com/c/go/+/234097 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
4e03dac77c
commit
b97212d1f1
18 changed files with 34 additions and 1515 deletions
|
|
@ -72,7 +72,9 @@ func TestAddMaterializedSymbol(t *testing.T) {
|
|||
// Suppose we create some more symbols, which triggers a grow.
|
||||
// Make sure the symbol builder's payload pointer is valid,
|
||||
// even across a grow.
|
||||
ldr.growSyms(9999)
|
||||
for i := 0; i < 9999; i++ {
|
||||
ldr.CreateStaticSym("dummy")
|
||||
}
|
||||
|
||||
// Check get/set symbol type
|
||||
es3typ := sb3.Type()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue