]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: check for power10 support on external linker for PPC64
authorPaul E. Murphy <murp@ibm.com>
Mon, 20 Feb 2023 15:21:32 +0000 (09:21 -0600)
committerPaul Murphy <murp@ibm.com>
Mon, 27 Feb 2023 14:57:47 +0000 (14:57 +0000)
commit3b5706b423acb900d5135e7010c5747408a80d0b
tree55b426f57e0486c91d68857b8fc74c7a9162d2bc
parent5e4e2acc8e53022f57398c4b0f3892f8113687f6
cmd/link: check for power10 support on external linker for PPC64

The external linker will need to support the new PC relative relocations
when they are generated by Go in a future patch. If it does not, many
unhelpful relocation errors will be generated by the external linker.

Use the -mcpu=power10 option as a surrogate for -mpcrel. It most cases,
it should indicate whether the underlying linker has support for
resolving PC relative relocations.

Change-Id: I84b151ce04512ccaeb17835aaf44105a5f6b515b
Reviewed-on: https://go-review.googlesource.com/c/go/+/469576
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Archana Ravindar <aravind5@in.ibm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/lib.go