]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: remove some unneeded code from writeBlock()
authorThan McIntosh <thanm@google.com>
Mon, 6 Jul 2020 13:38:17 +0000 (09:38 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 7 Jul 2020 13:07:46 +0000 (13:07 +0000)
commit130ede0d9e01ef53e734371faea080f5301d9c55
tree77a8dc2fc7752c91c53896732e40c13e73e6c408
parent1e9381207ef6c8b12f84d8b33414d04847d6d893
[dev.link] cmd/link: remove some unneeded code from writeBlock()

The loader writeBlock() function has code that tries to skip the
initial portion of the input symbols list depending on the address of
the section being written-- this code is dead (skipping is never
triggered) due to similar skipping in the callers; remove this
preamble.

Change-Id: I9769694a3194faf73ebebbbc10ceba4928c3087c
Reviewed-on: https://go-review.googlesource.com/c/go/+/241067
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/data.go