Change information
Commit message:
cmd/link: support PIE on linux/s390x without cgo
Enable PIE builds on linux/s390x when CGO is disabled by teaching
the linker to handle dynamic relocations against SDYNIMPORT
symbols.
This adds support for TLS_IE and handles R_CALL, R_PCRELDBL, and
R_ADDR relocations by generating the appropriate PLT/GOT entries
instead of rejecting them as unsupported.
Fixes #77449
Cq-Include-Trybots: luci.golang.try:gotip-linux-s390x
Change-Id: Ib6586780073fedbcbd42b9a2c554a99dd7386aa6
Files:
- M src/cmd/dist/test.go
- M src/cmd/link/internal/ld/elf.go
- M src/cmd/link/internal/s390x/asm.go
- M src/cmd/link/internal/s390x/obj.go
- M src/internal/platform/supported.go
Change size: M
Delta: 5 files changed, 167 insertions(+), 24 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Cherry Mui, +1 by Junyang Shao, +1 by Quim Muntal
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI