]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: don't split container symbols when write blocks
authorCherry Zhang <cherryyz@google.com>
Sat, 11 Apr 2020 02:11:51 +0000 (22:11 -0400)
committerCherry Zhang <cherryyz@google.com>
Sun, 12 Apr 2020 04:28:04 +0000 (04:28 +0000)
commit636fa3148fe149923839a86e648dd87dc4d1537a
treecbd79fd71af0b616a4be11edbf14ddf63653b56c
parent84fb045763f5a8917b98b82ae08f919a922e8177
[dev.link] cmd/link: don't split container symbols when write blocks

We split the output into blocks and write them in parallel. The
block boundary is placed at symbol boundary. In the case of outer
symbols and sub symbols, currently we may split an outer symbol
into two blocks. This will be bad, as the two blocks will have
overlapping address range, since outer symbol and its sub symbols
occupies the same address range.

Make sure we place block boundary only at top-level symbol
boundaries.

Fix boringcrypto build.

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