diff options
| author | Austin Clements <austin@google.com> | 2018-11-03 17:23:30 -0400 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-02-26 22:58:39 +0000 |
| commit | 2cdebb5174bba43fc1c76198c79f6be982c5c63a (patch) | |
| tree | 1d864dc376126b2fa9739f03b8561bb82b8b6602 /src/cmd/link/internal/ld/deadcode.go | |
| parent | ef954a03eb9d4e8d19e1024db088095110e19a0b (diff) | |
| download | go-2cdebb5174bba43fc1c76198c79f6be982c5c63a.tar.xz | |
cmd/link: delete stale deadcode reference
Back when the linker did code generation after dead code elimination,
it had to know that references to runtime.read_tls_fallback could be
generated at code generation time (and never appear before that). Now
that code generation is done by the compiler, the references to
runtime.read_tls_fallback are obvious in the relocations, so the
linker no longer needs special knowledge of this symbol.
Change-Id: I9813a8478e85a6a13470b2d0528db53fd33fcfdf
Reviewed-on: https://go-review.googlesource.com/c/154601
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
| -rw-r--r-- | src/cmd/link/internal/ld/deadcode.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go index 8f582174c5..627ce05d7a 100644 --- a/src/cmd/link/internal/ld/deadcode.go +++ b/src/cmd/link/internal/ld/deadcode.go @@ -209,11 +209,6 @@ func (d *deadcodepass) markMethod(m methodref) { func (d *deadcodepass) init() { var names []string - if d.ctxt.Arch.Family == sys.ARM { - // mark some functions that are only referenced after linker code editing - names = append(names, "runtime.read_tls_fallback") - } - if d.ctxt.BuildMode == BuildModeShared { // Mark all symbols defined in this library as reachable when // building a shared library. |
