]> Cypherpunks repositories - gostls13.git/commit
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>
Mon, 13 Apr 2020 22:38:56 +0000 (22:38 +0000)
commitca017a6fb9b46860ab0b5054ca07feea3d711a36
treef2a62d854b702bf2ecb46b9e55bb5d3a0a191628
parent1b15c7f1026232afd0e398aa5925f534b6b05bdc
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>
(cherry picked from commit 636fa3148fe149923839a86e648dd87dc4d1537a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/228138
src/cmd/link/internal/ld/data.go