]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: refer to .got instead of .got.plt on S390X
authorCherry Zhang <cherryyz@google.com>
Thu, 12 Mar 2020 02:24:01 +0000 (22:24 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 12 Mar 2020 15:50:31 +0000 (15:50 +0000)
commit2a5bf32638e1ce1fd85c722f39dff4cf842c0de1
treee3e26043a089a37b6256b1df623ec3277912c81c
parenta3e965ce8addeb6a0b690069522a0487f68ee316
[dev.link] cmd/link: refer to .got instead of .got.plt on S390X

S390X uses .got instead of .got.plt. It is changed accidentally
in CL 222977. This CL fixes it.

Also, on S390X, we need to set the relocation "variant" of
R_PCREL relocation. In the old code AddPCRelPlus has the magic.
Here we use the equivalent R_PCRELDBL, as the loader doesn't
have variant.

Fix S390X build.

Change-Id: I388e16f02a0568d70287aa9a132fd42b442e3905
Reviewed-on: https://go-review.googlesource.com/c/go/+/223143
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/s390x/asm.go