]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: use the start of compilation unit for R_ADDRCUOFF
authorCherry Zhang <cherryyz@google.com>
Sat, 2 Nov 2019 21:25:39 +0000 (17:25 -0400)
committerCherry Zhang <cherryyz@google.com>
Sun, 3 Nov 2019 19:43:59 +0000 (19:43 +0000)
commitab4a71fca7de1db1fd30e9a6c6d96fc84f8fffa4
tree76f50ff0f6ea4d184a1d931e5197596fd74c47a8
parent4497d7eb6f2c6ab29cb4a352775a9952820508f9
[dev.link] cmd/link: use the start of compilation unit for R_ADDRCUOFF

R_ADDRCUOFF refers to the offset from the start of the
compilation unit. Now that we could have multiple compilation
units per package, we should use the start of the compilation
unit, instead of the start of the package.

Change-Id: I3d6a3c5a5c47c9ccf88091ed05413ced826f9934
Reviewed-on: https://go-review.googlesource.com/c/go/+/204828
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