]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix spurious R_TLE_LE reloc on android/386
authorThan McIntosh <thanm@google.com>
Thu, 10 Oct 2019 16:11:06 +0000 (12:11 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 29 Oct 2019 14:52:57 +0000 (14:52 +0000)
commite7ce8627b0adb0dfa8657c5186a1a53e1baad404
tree3400fddf5640131e16eaf898a07a15076b5514cc
parenta0c1e8d1ab07068e14b5abcd02099dbfb932188b
cmd/compile: fix spurious R_TLE_LE reloc on android/386

When compiling for GOARCH=386 GOOS=android, the compiler was attaching
R_TLS_LE relocations inappropriately -- as of Go 1.13 the TLS access
recipe for Android refers to a runtime symbol and no longer needs this
type of relocation (which was causing a crash when the linker tried to
process it).

Updates #29674.
Fixes #34788.

Change-Id: Ida01875011b524586597b1f7e273aa14e11815d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/200337
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/x86/asm6.go
src/cmd/link/link_test.go