]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] 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)
committerCarlos Amedee <carlos@golang.org>
Wed, 4 Dec 2019 17:13:26 +0000 (17:13 +0000)
commitf238d3b9fa149264891510b7b30024040b8a8c8f
treedbeb51badc332d71ec20799306a702804f843f1c
parent6eee9903c7f970defbc0c9770397790b2bed5709
[release-branch.go1.13] 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).

Fixes #34825.

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/204100
src/cmd/internal/obj/x86/asm6.go
src/cmd/link/link_test.go